2024-11-08 18:04:01,064 - INFO - Domain Default found not creating
2024-11-08 18:04:01,256 - INFO - Project ctest-TestBasicPolicy-39845707 not found, creating it
2024-11-08 18:04:01,770 - INFO - Created Project:ctest-TestBasicPolicy-39845707, ID : de62bead-cf7c-4ddd-8213-c7f32dd1255e
2024-11-08 18:04:03,339 - INFO - ================================================================================
2024-11-08 18:04:03,340 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-11-08 18:04:03,340 - INFO - TEST DESCRIPTION :
Create 2 Vns and allow icmp traffic between them and validate with pings
Update the policy to deny the same traffic
Check that pings fail
2024-11-08 18:04:03,599 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.6': '0'}} with
2024-11-08 18:04:03,599 - INFO - Initial checks done. Running the testcase now
2024-11-08 18:04:03,599 - INFO -
2024-11-08 18:04:04,190 - DEBUG - Response for create_network : {'network': {'id': '81541e90-cd9d-4d82-9ffb-11795d9deb57', 'name': 'ctest-vn-91151829', 'tenant_id': 'de62beadcf7c4ddd8213c7f32dd1255e', 'project_id': 'de62beadcf7c4ddd8213c7f32dd1255e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-39845707', 'ctest-vn-91151829'], 'port_security_enabled': True, 'description': ''}}
2024-11-08 18:04:04,358 - DEBUG - Response for create_subnet : {'subnet': {'id': '5332e64b-1b19-4f11-8398-f627966bfa1e', 'name': '', 'tenant_id': 'de62beadcf7c4ddd8213c7f32dd1255e', 'network_id': '81541e90-cd9d-4d82-9ffb-11795d9deb57', 'ip_version': 4, 'cidr': '131.161.49.128/26', 'allocation_pools': [{'start': '131.161.49.130', 'end': '131.161.49.190'}], 'gateway_ip': '131.161.49.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '131.161.49.130', 'tags': [], 'project_id': 'de62beadcf7c4ddd8213c7f32dd1255e'}}
2024-11-08 18:04:04,380 - INFO - Created VN ctest-vn-91151829
2024-11-08 18:04:04,436 - DEBUG - VN ctest-vn-91151829 UUID is 81541e90-cd9d-4d82-9ffb-11795d9deb57
2024-11-08 18:04:04,761 - DEBUG - Response for create_network : {'network': {'id': '20fba84a-3a2a-4251-bafa-dc9fd5924cd5', 'name': 'ctest-vn-65683626', 'tenant_id': 'de62beadcf7c4ddd8213c7f32dd1255e', 'project_id': 'de62beadcf7c4ddd8213c7f32dd1255e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-39845707', 'ctest-vn-65683626'], 'port_security_enabled': True, 'description': ''}}
2024-11-08 18:04:04,963 - DEBUG - Response for create_subnet : {'subnet': {'id': '00d5c8c4-cc7d-4a44-9ac2-a2dfd4cd7c60', 'name': '', 'tenant_id': 'de62beadcf7c4ddd8213c7f32dd1255e', 'network_id': '20fba84a-3a2a-4251-bafa-dc9fd5924cd5', 'ip_version': 4, 'cidr': '6.164.91.192/26', 'allocation_pools': [{'start': '6.164.91.194', 'end': '6.164.91.254'}], 'gateway_ip': '6.164.91.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '6.164.91.194', 'tags': [], 'project_id': 'de62beadcf7c4ddd8213c7f32dd1255e'}}
2024-11-08 18:04:04,983 - INFO - Created VN ctest-vn-65683626
2024-11-08 18:04:05,040 - DEBUG - VN ctest-vn-65683626 UUID is 20fba84a-3a2a-4251-bafa-dc9fd5924cd5
2024-11-08 18:04:05,164 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-39845707:ctest-vn-91151829, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-39845707:ctest-vn-65683626, security_group = None, network_policy = None, subnet_list = []], dst_ports = [start_port = -1, end_port = -1], action_list = simple_action = pass, gateway_name = None, apply_service = [], service_properties = None, mirror_to = None, assign_routing_instance = None, log = False, alert = False, qos_action = None, host_based_service = False, ethertype = None, created = None, last_modified = None, description = None]
2024-11-08 18:04:05,494 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '81541e90-cd9d-4d82-9ffb-11795d9deb57', 'name': 'ctest-vn-91151829', 'tenant_id': 'de62beadcf7c4ddd8213c7f32dd1255e', 'project_id': 'de62beadcf7c4ddd8213c7f32dd1255e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5332e64b-1b19-4f11-8398-f627966bfa1e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-39845707', 'ctest-vn-91151829'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-39845707', 'ctest-policy-allow-all-92700248']], 'subnet_ipam': [{'subnet_cidr': '131.161.49.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-08 18:04:05,739 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '20fba84a-3a2a-4251-bafa-dc9fd5924cd5', 'name': 'ctest-vn-65683626', 'tenant_id': 'de62beadcf7c4ddd8213c7f32dd1255e', 'project_id': 'de62beadcf7c4ddd8213c7f32dd1255e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['00d5c8c4-cc7d-4a44-9ac2-a2dfd4cd7c60'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-39845707', 'ctest-vn-65683626'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-39845707', 'ctest-policy-allow-all-92700248']], 'subnet_ipam': [{'subnet_cidr': '6.164.91.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-08 18:04:05,896 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2024-11-08 18:04:06,202 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2024-11-08 18:04:06,238 - DEBUG - Requesting: http://10.0.0.33:8082/domain/f12f2c84-aa20-4a7e-b943-7ed979b244e0
2024-11-08 18:04:06,253 - DEBUG - Requesting: http://10.0.0.33:8082/project/de62bead-cf7c-4ddd-8213-c7f32dd1255e
2024-11-08 18:04:06,337 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/81541e90-cd9d-4d82-9ffb-11795d9deb57
2024-11-08 18:04:06,353 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/81541e90-cd9d-4d82-9ffb-11795d9deb57
2024-11-08 18:04:06,369 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/ba65ebbb-6512-455c-9fde-bdcc8d11711e
2024-11-08 18:04:06,379 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/ba65ebbb-6512-455c-9fde-bdcc8d11711e
2024-11-08 18:04:06,388 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/891684c4-937d-4b2c-83f2-875e9cd579b8
2024-11-08 18:04:06,397 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-08 18:04:06,397 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/81541e90-cd9d-4d82-9ffb-11795d9deb57
2024-11-08 18:04:06,412 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/ba65ebbb-6512-455c-9fde-bdcc8d11711e
2024-11-08 18:04:06,435 - INFO - Verified VN network id 8 for VN 81541e90-cd9d-4d82-9ffb-11795d9deb57
2024-11-08 18:04:06,435 - INFO - Verifications in API Server for VN ctest-vn-91151829 passed
2024-11-08 18:04:06,435 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/81541e90-cd9d-4d82-9ffb-11795d9deb57
2024-11-08 18:04:06,457 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/ba65ebbb-6512-455c-9fde-bdcc8d11711e
2024-11-08 18:04:06,467 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/ba65ebbb-6512-455c-9fde-bdcc8d11711e
2024-11-08 18:04:06,476 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/891684c4-937d-4b2c-83f2-875e9cd579b8
2024-11-08 18:04:06,492 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-39845707:ctest-vn-91151829', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-39845707', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9319107136210161026', 'uuid-lslong': '11527826884144261975'}, 'enable': 'true', 'created': '2024-11-08T18:04:04', 'last-modified': '2024-11-08T18:04:05', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.028975'}
2024-11-08 18:04:06,501 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-08 18:04:06,501 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-91151829 passed
2024-11-08 18:04:06,502 - DEBUG - ====Verifying policy data for ctest-vn-91151829 in API_Server ======
2024-11-08 18:04:06,502 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2024-11-08 18:04:06,508 - DEBUG - Requesting: http://10.0.0.33:8082/domain/f12f2c84-aa20-4a7e-b943-7ed979b244e0
2024-11-08 18:04:06,522 - DEBUG - Requesting: http://10.0.0.33:8082/project/de62bead-cf7c-4ddd-8213-c7f32dd1255e
2024-11-08 18:04:06,611 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/81541e90-cd9d-4d82-9ffb-11795d9deb57
2024-11-08 18:04:06,626 - DEBUG - ==>Verifying data for policy with id: 50c51733-4d98-4331-9754-3e50cda73170, fqn: ['default-domain', 'ctest-TestBasicPolicy-39845707', 'ctest-policy-allow-all-92700248']
2024-11-08 18:04:06,626 - INFO - VN ctest-vn-91151829 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-08 18:04:06,626 - DEBUG - Verifying the vn in opserver
2024-11-08 18:04:06,626 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-39845707:ctest-vn-91151829 virtual network link through opserver 10.0.0.33
2024-11-08 18:04:06,626 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2024-11-08 18:04:06,927 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2024-11-08 18:04:06,992 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-39845707:ctest-vn-91151829', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-39845707:ctest-vn-91151829?flat'}
2024-11-08 18:04:06,993 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-39845707:ctest-vn-91151829 is found in opserver
2024-11-08 18:04:07,005 - DEBUG - Do not have enough data to verify VN in agent
2024-11-08 18:04:07,011 - DEBUG - VRF ids for VN ctest-vn-91151829: {}
2024-11-08 18:04:07,011 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2024-11-08 18:04:07,017 - DEBUG - Requesting: http://10.0.0.33:8082/domain/f12f2c84-aa20-4a7e-b943-7ed979b244e0
2024-11-08 18:04:07,033 - DEBUG - Requesting: http://10.0.0.33:8082/project/de62bead-cf7c-4ddd-8213-c7f32dd1255e
2024-11-08 18:04:07,118 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/20fba84a-3a2a-4251-bafa-dc9fd5924cd5
2024-11-08 18:04:07,137 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/20fba84a-3a2a-4251-bafa-dc9fd5924cd5
2024-11-08 18:04:07,155 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/46d4d83f-d4b3-45e5-a86a-7765fc93bda5
2024-11-08 18:04:07,165 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/46d4d83f-d4b3-45e5-a86a-7765fc93bda5
2024-11-08 18:04:07,174 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/ae946cb6-33fd-41a3-b045-e46b2fd778ca
2024-11-08 18:04:07,182 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-08 18:04:07,182 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/20fba84a-3a2a-4251-bafa-dc9fd5924cd5
2024-11-08 18:04:07,199 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/46d4d83f-d4b3-45e5-a86a-7765fc93bda5
2024-11-08 18:04:07,223 - INFO - Verified VN network id 9 for VN 20fba84a-3a2a-4251-bafa-dc9fd5924cd5
2024-11-08 18:04:07,223 - INFO - Verifications in API Server for VN ctest-vn-65683626 passed
2024-11-08 18:04:07,223 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/20fba84a-3a2a-4251-bafa-dc9fd5924cd5
2024-11-08 18:04:07,238 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/46d4d83f-d4b3-45e5-a86a-7765fc93bda5
2024-11-08 18:04:07,251 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/46d4d83f-d4b3-45e5-a86a-7765fc93bda5
2024-11-08 18:04:07,261 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/ae946cb6-33fd-41a3-b045-e46b2fd778ca
2024-11-08 18:04:07,278 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-39845707:ctest-vn-65683626', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-39845707', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2376678265124962897', 'uuid-lslong': '13473323814273305813'}, 'enable': 'true', 'created': '2024-11-08T18:04:04', 'last-modified': '2024-11-08T18:04:05', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.557800'}
2024-11-08 18:04:07,287 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-08 18:04:07,287 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-65683626 passed
2024-11-08 18:04:07,287 - DEBUG - ====Verifying policy data for ctest-vn-65683626 in API_Server ======
2024-11-08 18:04:07,287 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2024-11-08 18:04:07,294 - DEBUG - Requesting: http://10.0.0.33:8082/domain/f12f2c84-aa20-4a7e-b943-7ed979b244e0
2024-11-08 18:04:07,308 - DEBUG - Requesting: http://10.0.0.33:8082/project/de62bead-cf7c-4ddd-8213-c7f32dd1255e
2024-11-08 18:04:07,391 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/20fba84a-3a2a-4251-bafa-dc9fd5924cd5
2024-11-08 18:04:07,406 - DEBUG - ==>Verifying data for policy with id: 50c51733-4d98-4331-9754-3e50cda73170, fqn: ['default-domain', 'ctest-TestBasicPolicy-39845707', 'ctest-policy-allow-all-92700248']
2024-11-08 18:04:07,406 - INFO - VN ctest-vn-65683626 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-08 18:04:07,406 - DEBUG - Verifying the vn in opserver
2024-11-08 18:04:07,406 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-39845707:ctest-vn-65683626 virtual network link through opserver 10.0.0.33
2024-11-08 18:04:07,406 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2024-11-08 18:04:07,418 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-39845707:ctest-vn-65683626', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-39845707:ctest-vn-65683626?flat'}
2024-11-08 18:04:07,418 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-39845707:ctest-vn-65683626 is found in opserver
2024-11-08 18:04:07,429 - DEBUG - Do not have enough data to verify VN in agent
2024-11-08 18:04:07,434 - DEBUG - VRF ids for VN ctest-vn-65683626: {}
2024-11-08 18:04:07,499 - DEBUG - Services list from nova: [