2024-09-02 18:29:25,462 - INFO - Reading existing Domain with UUID 58dce124-eb0a-40d6-909d-474de86f8e9d
2024-09-02 18:29:25,475 - INFO - Using existing domain ['admin_domain'](58dce124-eb0a-40d6-909d-474de86f8e9d)
2024-09-02 18:29:25,656 - INFO - Project ctest-TestBasicPolicy-07579284 not found, creating it
2024-09-02 18:29:26,153 - INFO - Created Project:ctest-TestBasicPolicy-07579284, ID : 25c4d633-e4fc-4e65-b0b7-8f6a3dff3863
2024-09-02 18:29:27,775 - INFO - ================================================================================
2024-09-02 18:29:27,776 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-09-02 18:29:27,776 - 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-09-02 18:29:28,148 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.0.0.33': '0'}} with
2024-09-02 18:29:28,148 - INFO - Initial checks done. Running the testcase now
2024-09-02 18:29:28,148 - INFO -
2024-09-02 18:29:28,864 - DEBUG - Response for create_network : {'network': {'id': 'b0a2bf17-549f-4349-80c2-fc2fa805e540', 'name': 'ctest-vn-28812815', 'tenant_id': '25c4d633e4fc4e65b0b78f6a3dff3863', 'project_id': '25c4d633e4fc4e65b0b78f6a3dff3863', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-07579284', 'ctest-vn-28812815'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}}
2024-09-02 18:29:29,080 - DEBUG - Response for create_subnet : {'subnet': {'id': '8ee837ef-d300-4898-8bf2-d18827e8d600', 'name': '', 'tenant_id': '25c4d633e4fc4e65b0b78f6a3dff3863', 'network_id': 'b0a2bf17-549f-4349-80c2-fc2fa805e540', 'ip_version': 4, 'cidr': '51.103.31.192/26', 'allocation_pools': [{'start': '51.103.31.194', 'end': '51.103.31.254'}], 'gateway_ip': '51.103.31.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2024-09-02T18:29:28.977427', 'updated_at': '2024-09-02T18:29:28.977427', 'dns_server_address': '51.103.31.194', 'tags': [], 'project_id': '25c4d633e4fc4e65b0b78f6a3dff3863'}}
2024-09-02 18:29:29,145 - INFO - Created VN ctest-vn-28812815
2024-09-02 18:29:29,195 - DEBUG - VN ctest-vn-28812815 UUID is b0a2bf17-549f-4349-80c2-fc2fa805e540
2024-09-02 18:29:29,671 - DEBUG - Response for create_network : {'network': {'id': 'fcaf64b5-a1a4-4a85-bbdc-12584b1e1f54', 'name': 'ctest-vn-91639257', 'tenant_id': '25c4d633e4fc4e65b0b78f6a3dff3863', 'project_id': '25c4d633e4fc4e65b0b78f6a3dff3863', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-07579284', 'ctest-vn-91639257'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}}
2024-09-02 18:29:29,899 - DEBUG - Response for create_subnet : {'subnet': {'id': '11b7c088-d824-4146-a2a7-744adc2d65d8', 'name': '', 'tenant_id': '25c4d633e4fc4e65b0b78f6a3dff3863', 'network_id': 'fcaf64b5-a1a4-4a85-bbdc-12584b1e1f54', 'ip_version': 4, 'cidr': '96.98.230.128/26', 'allocation_pools': [{'start': '96.98.230.130', 'end': '96.98.230.190'}], 'gateway_ip': '96.98.230.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2024-09-02T18:29:29.805924', 'updated_at': '2024-09-02T18:29:29.805924', 'dns_server_address': '96.98.230.130', 'tags': [], 'project_id': '25c4d633e4fc4e65b0b78f6a3dff3863'}}
2024-09-02 18:29:29,961 - INFO - Created VN ctest-vn-91639257
2024-09-02 18:29:30,015 - DEBUG - VN ctest-vn-91639257 UUID is fcaf64b5-a1a4-4a85-bbdc-12584b1e1f54
2024-09-02 18:29:30,223 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicy-07579284:ctest-vn-28812815, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicy-07579284:ctest-vn-91639257, 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-09-02 18:29:30,631 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b0a2bf17-549f-4349-80c2-fc2fa805e540', 'name': 'ctest-vn-28812815', 'tenant_id': '25c4d633e4fc4e65b0b78f6a3dff3863', 'project_id': '25c4d633e4fc4e65b0b78f6a3dff3863', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8ee837ef-d300-4898-8bf2-d18827e8d600'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-07579284', 'ctest-vn-28812815'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-07579284', 'ctest-policy-allow-all-11040665']], 'subnet_ipam': [{'subnet_cidr': '51.103.31.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2024-09-02T18:29:28.788671', 'updated_at': '2024-09-02T18:29:28.991712'}}
2024-09-02 18:29:31,035 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fcaf64b5-a1a4-4a85-bbdc-12584b1e1f54', 'name': 'ctest-vn-91639257', 'tenant_id': '25c4d633e4fc4e65b0b78f6a3dff3863', 'project_id': '25c4d633e4fc4e65b0b78f6a3dff3863', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['11b7c088-d824-4146-a2a7-744adc2d65d8'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-07579284', 'ctest-vn-91639257'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-07579284', 'ctest-policy-allow-all-11040665']], 'subnet_ipam': [{'subnet_cidr': '96.98.230.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2024-09-02T18:29:29.597434', 'updated_at': '2024-09-02T18:29:29.818416'}}
2024-09-02 18:29:31,223 - DEBUG - Requesting: https://10.0.0.33:8082/domains
2024-09-02 18:29:31,559 - DEBUG - Requesting: https://10.0.0.33:8082/domains
2024-09-02 18:29:31,636 - DEBUG - Requesting: https://10.0.0.33:8082/domain/58dce124-eb0a-40d6-909d-474de86f8e9d
2024-09-02 18:29:31,692 - DEBUG - Requesting: https://10.0.0.33:8082/project/25c4d633-e4fc-4e65-b0b7-8f6a3dff3863
2024-09-02 18:29:31,769 - DEBUG - Requesting: https://10.0.0.33:8082/virtual-network/b0a2bf17-549f-4349-80c2-fc2fa805e540
2024-09-02 18:29:31,877 - DEBUG - Requesting: https://10.0.0.33:8082/virtual-network/b0a2bf17-549f-4349-80c2-fc2fa805e540
2024-09-02 18:29:31,953 - DEBUG - Requesting: https://10.0.0.33:8082/routing-instance/51c4a605-ddc3-4e26-b737-a67df3161cd9
2024-09-02 18:29:32,008 - DEBUG - Requesting: https://10.0.0.33:8082/routing-instance/51c4a605-ddc3-4e26-b737-a67df3161cd9
2024-09-02 18:29:32,060 - DEBUG - Requesting: https://10.0.0.33:8082/route-target/0b9b5060-cfcd-47f5-8fb2-831460aa1d4d
2024-09-02 18:29:32,112 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-02 18:29:32,112 - DEBUG - Requesting: https://10.0.0.33:8082/virtual-network/b0a2bf17-549f-4349-80c2-fc2fa805e540
2024-09-02 18:29:32,169 - DEBUG - Requesting: https://10.0.0.33:8082/routing-instance/51c4a605-ddc3-4e26-b737-a67df3161cd9
2024-09-02 18:29:32,235 - INFO - Verified VN network id 8 for VN b0a2bf17-549f-4349-80c2-fc2fa805e540
2024-09-02 18:29:32,235 - INFO - Verifications in API Server for VN ctest-vn-28812815 passed
2024-09-02 18:29:32,235 - DEBUG - Requesting: https://10.0.0.33:8082/virtual-network/b0a2bf17-549f-4349-80c2-fc2fa805e540
2024-09-02 18:29:32,293 - DEBUG - Requesting: https://10.0.0.33:8082/routing-instance/51c4a605-ddc3-4e26-b737-a67df3161cd9
2024-09-02 18:29:32,344 - DEBUG - Requesting: https://10.0.0.33:8082/routing-instance/51c4a605-ddc3-4e26-b737-a67df3161cd9
2024-09-02 18:29:32,400 - DEBUG - Requesting: https://10.0.0.33:8082/route-target/0b9b5060-cfcd-47f5-8fb2-831460aa1d4d
2024-09-02 18:29:32,500 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-07579284:ctest-vn-28812815', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-07579284', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12727945603827319625', 'uuid-lslong': '9278255463949264192'}, 'enable': 'true', 'created': '2024-09-02T18:29:28', 'last-modified': '2024-09-02T18:29:30', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.902730'}
2024-09-02 18:29:32,553 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-02 18:29:32,553 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-28812815 passed
2024-09-02 18:29:32,553 - DEBUG - ====Verifying policy data for ctest-vn-28812815 in API_Server ======
2024-09-02 18:29:32,553 - DEBUG - Requesting: https://10.0.0.33:8082/domains
2024-09-02 18:29:32,607 - DEBUG - Requesting: https://10.0.0.33:8082/domain/58dce124-eb0a-40d6-909d-474de86f8e9d
2024-09-02 18:29:32,664 - DEBUG - Requesting: https://10.0.0.33:8082/project/25c4d633-e4fc-4e65-b0b7-8f6a3dff3863
2024-09-02 18:29:32,737 - DEBUG - Requesting: https://10.0.0.33:8082/virtual-network/b0a2bf17-549f-4349-80c2-fc2fa805e540
2024-09-02 18:29:32,793 - DEBUG - ==>Verifying data for policy with id: 810acda3-3545-439f-83ed-494a1ca01e51, fqn: ['admin_domain', 'ctest-TestBasicPolicy-07579284', 'ctest-policy-allow-all-11040665']
2024-09-02 18:29:32,793 - INFO - VN ctest-vn-28812815 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-02 18:29:32,793 - DEBUG - Verifying the vn in opserver
2024-09-02 18:29:32,793 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-07579284:ctest-vn-28812815 virtual network link through opserver 10.0.0.33
2024-09-02 18:29:32,794 - DEBUG - Requesting: https://10.0.0.33:8081/analytics/uves/virtual-networks
2024-09-02 18:29:33,133 - DEBUG - Requesting: https://10.0.0.33:8081/analytics/uves/virtual-networks
2024-09-02 18:29:33,252 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-07579284:ctest-vn-28812815', 'href': 'https://10.0.0.33:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-07579284:ctest-vn-28812815?flat'}
2024-09-02 18:29:33,252 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-07579284:ctest-vn-28812815 is found in opserver
2024-09-02 18:29:33,348 - DEBUG - Do not have enough data to verify VN in agent
2024-09-02 18:29:33,400 - DEBUG - VRF ids for VN ctest-vn-28812815: {}
2024-09-02 18:29:33,400 - DEBUG - Requesting: https://10.0.0.33:8082/domains
2024-09-02 18:29:33,451 - DEBUG - Requesting: https://10.0.0.33:8082/domain/58dce124-eb0a-40d6-909d-474de86f8e9d
2024-09-02 18:29:33,508 - DEBUG - Requesting: https://10.0.0.33:8082/project/25c4d633-e4fc-4e65-b0b7-8f6a3dff3863
2024-09-02 18:29:33,585 - DEBUG - Requesting: https://10.0.0.33:8082/virtual-network/fcaf64b5-a1a4-4a85-bbdc-12584b1e1f54
2024-09-02 18:29:33,641 - DEBUG - Requesting: https://10.0.0.33:8082/virtual-network/fcaf64b5-a1a4-4a85-bbdc-12584b1e1f54
2024-09-02 18:29:33,697 - DEBUG - Requesting: https://10.0.0.33:8082/routing-instance/a21b4c2d-1416-4f5f-b536-0cd0bd491dcc
2024-09-02 18:29:33,748 - DEBUG - Requesting: https://10.0.0.33:8082/routing-instance/a21b4c2d-1416-4f5f-b536-0cd0bd491dcc
2024-09-02 18:29:33,800 - DEBUG - Requesting: https://10.0.0.33:8082/route-target/9e146626-2c0f-49cb-b32f-87392ed39973
2024-09-02 18:29:33,852 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-02 18:29:33,852 - DEBUG - Requesting: https://10.0.0.33:8082/virtual-network/fcaf64b5-a1a4-4a85-bbdc-12584b1e1f54
2024-09-02 18:29:33,905 - DEBUG - Requesting: https://10.0.0.33:8082/routing-instance/a21b4c2d-1416-4f5f-b536-0cd0bd491dcc
2024-09-02 18:29:33,962 - INFO - Verified VN network id 9 for VN fcaf64b5-a1a4-4a85-bbdc-12584b1e1f54
2024-09-02 18:29:33,962 - INFO - Verifications in API Server for VN ctest-vn-91639257 passed
2024-09-02 18:29:33,963 - DEBUG - Requesting: https://10.0.0.33:8082/virtual-network/fcaf64b5-a1a4-4a85-bbdc-12584b1e1f54
2024-09-02 18:29:34,021 - DEBUG - Requesting: https://10.0.0.33:8082/routing-instance/a21b4c2d-1416-4f5f-b536-0cd0bd491dcc
2024-09-02 18:29:34,072 - DEBUG - Requesting: https://10.0.0.33:8082/routing-instance/a21b4c2d-1416-4f5f-b536-0cd0bd491dcc
2024-09-02 18:29:34,128 - DEBUG - Requesting: https://10.0.0.33:8082/route-target/9e146626-2c0f-49cb-b32f-87392ed39973
2024-09-02 18:29:34,236 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-07579284:ctest-vn-91639257', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-07579284', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18207882549745961605', 'uuid-lslong': '13536714750395555668'}, 'enable': 'true', 'created': '2024-09-02T18:29:29', 'last-modified': '2024-09-02T18:29:30', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:03.267668'}
2024-09-02 18:29:34,289 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-02 18:29:34,289 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-91639257 passed
2024-09-02 18:29:34,289 - DEBUG - ====Verifying policy data for ctest-vn-91639257 in API_Server ======
2024-09-02 18:29:34,289 - DEBUG - Requesting: https://10.0.0.33:8082/domains
2024-09-02 18:29:34,340 - DEBUG - Requesting: https://10.0.0.33:8082/domain/58dce124-eb0a-40d6-909d-474de86f8e9d
2024-09-02 18:29:34,397 - DEBUG - Requesting: https://10.0.0.33:8082/project/25c4d633-e4fc-4e65-b0b7-8f6a3dff3863
2024-09-02 18:29:34,473 - DEBUG - Requesting: https://10.0.0.33:8082/virtual-network/fcaf64b5-a1a4-4a85-bbdc-12584b1e1f54
2024-09-02 18:29:34,564 - DEBUG - ==>Verifying data for policy with id: 810acda3-3545-439f-83ed-494a1ca01e51, fqn: ['admin_domain', 'ctest-TestBasicPolicy-07579284', 'ctest-policy-allow-all-11040665']
2024-09-02 18:29:34,564 - INFO - VN ctest-vn-91639257 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-02 18:29:34,564 - DEBUG - Verifying the vn in opserver
2024-09-02 18:29:34,564 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-07579284:ctest-vn-91639257 virtual network link through opserver 10.0.0.33
2024-09-02 18:29:34,564 - DEBUG - Requesting: https://10.0.0.33:8081/analytics/uves/virtual-networks
2024-09-02 18:29:34,628 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-07579284:ctest-vn-91639257', 'href': 'https://10.0.0.33:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-07579284:ctest-vn-91639257?flat'}
2024-09-02 18:29:34,628 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-07579284:ctest-vn-91639257 is found in opserver
2024-09-02 18:29:34,724 - DEBUG - Do not have enough data to verify VN in agent
2024-09-02 18:29:34,780 - DEBUG - VRF ids for VN ctest-vn-91639257: {}
2024-09-02 18:29:34,841 - DEBUG - Services list from nova: [