2025-05-21 13:51:28,302 - INFO - Domain Default found not creating
2025-05-21 13:51:28,506 - INFO - Project ctest-TestBasicPolicy-45441608 not found, creating it
2025-05-21 13:51:29,030 - INFO - Created Project:ctest-TestBasicPolicy-45441608, ID : 6aa946c1-e707-440c-9a28-434b565574cc
2025-05-21 13:51:30,741 - INFO - ================================================================================
2025-05-21 13:51:30,742 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-05-21 13:51:30,742 - 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
2025-05-21 13:51:31,016 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-05-21 13:51:31,016 - INFO - Initial checks done. Running the testcase now
2025-05-21 13:51:31,016 - INFO -
2025-05-21 13:51:31,609 - DEBUG - Response for create_network : {'network': {'id': '9cb45953-ee8f-423f-be47-981a528baf7f', 'name': 'ctest-vn-82807079', 'tenant_id': '6aa946c1e707440c9a28434b565574cc', 'project_id': '6aa946c1e707440c9a28434b565574cc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-45441608', 'ctest-vn-82807079'], 'port_security_enabled': True, 'description': ''}}
2025-05-21 13:51:31,850 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f2dd9754-f774-469b-9460-b9aa37cc04ef', 'name': '', 'tenant_id': '6aa946c1e707440c9a28434b565574cc', 'network_id': '9cb45953-ee8f-423f-be47-981a528baf7f', 'ip_version': 4, 'cidr': '173.110.245.192/26', 'allocation_pools': [{'start': '173.110.245.194', 'end': '173.110.245.254'}], 'gateway_ip': '173.110.245.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '173.110.245.194', 'tags': [], 'project_id': '6aa946c1e707440c9a28434b565574cc'}}
2025-05-21 13:51:31,873 - INFO - Created VN ctest-vn-82807079
2025-05-21 13:51:31,928 - DEBUG - VN ctest-vn-82807079 UUID is 9cb45953-ee8f-423f-be47-981a528baf7f
2025-05-21 13:51:32,261 - DEBUG - Response for create_network : {'network': {'id': '4c44cedf-92cd-431b-a43e-b23b0287b9a4', 'name': 'ctest-vn-46444703', 'tenant_id': '6aa946c1e707440c9a28434b565574cc', 'project_id': '6aa946c1e707440c9a28434b565574cc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-45441608', 'ctest-vn-46444703'], 'port_security_enabled': True, 'description': ''}}
2025-05-21 13:51:32,427 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f293e2a9-abdb-409d-9779-ef4ca09364ca', 'name': '', 'tenant_id': '6aa946c1e707440c9a28434b565574cc', 'network_id': '4c44cedf-92cd-431b-a43e-b23b0287b9a4', 'ip_version': 4, 'cidr': '50.31.14.0/26', 'allocation_pools': [{'start': '50.31.14.2', 'end': '50.31.14.62'}], 'gateway_ip': '50.31.14.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '50.31.14.2', 'tags': [], 'project_id': '6aa946c1e707440c9a28434b565574cc'}}
2025-05-21 13:51:32,448 - INFO - Created VN ctest-vn-46444703
2025-05-21 13:51:32,503 - DEBUG - VN ctest-vn-46444703 UUID is 4c44cedf-92cd-431b-a43e-b23b0287b9a4
2025-05-21 13:51:32,633 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-45441608:ctest-vn-82807079, 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-45441608:ctest-vn-46444703, 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]
2025-05-21 13:51:33,194 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9cb45953-ee8f-423f-be47-981a528baf7f', 'name': 'ctest-vn-82807079', 'tenant_id': '6aa946c1e707440c9a28434b565574cc', 'project_id': '6aa946c1e707440c9a28434b565574cc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f2dd9754-f774-469b-9460-b9aa37cc04ef'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-45441608', 'ctest-vn-82807079'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-45441608', 'ctest-policy-allow-all-88763189']], 'subnet_ipam': [{'subnet_cidr': '173.110.245.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-21 13:51:33,596 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4c44cedf-92cd-431b-a43e-b23b0287b9a4', 'name': 'ctest-vn-46444703', 'tenant_id': '6aa946c1e707440c9a28434b565574cc', 'project_id': '6aa946c1e707440c9a28434b565574cc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f293e2a9-abdb-409d-9779-ef4ca09364ca'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-45441608', 'ctest-vn-46444703'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-45441608', 'ctest-policy-allow-all-88763189']], 'subnet_ipam': [{'subnet_cidr': '50.31.14.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-21 13:51:33,771 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-05-21 13:51:34,134 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-05-21 13:51:34,171 - DEBUG - Requesting: http://10.0.0.254:8082/domain/896f3670-2d87-4ab0-958f-1abdf8f8d010
2025-05-21 13:51:34,213 - DEBUG - Requesting: http://10.0.0.254:8082/project/6aa946c1-e707-440c-9a28-434b565574cc
2025-05-21 13:51:34,261 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/9cb45953-ee8f-423f-be47-981a528baf7f
2025-05-21 13:51:34,279 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/9cb45953-ee8f-423f-be47-981a528baf7f
2025-05-21 13:51:34,296 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/2530cece-1733-4ca9-ac8c-5f637a55177e
2025-05-21 13:51:34,309 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/2530cece-1733-4ca9-ac8c-5f637a55177e
2025-05-21 13:51:34,319 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/41bd8423-03eb-4ceb-8922-4585f056ee67
2025-05-21 13:51:34,328 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-21 13:51:34,329 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/9cb45953-ee8f-423f-be47-981a528baf7f
2025-05-21 13:51:34,343 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/2530cece-1733-4ca9-ac8c-5f637a55177e
2025-05-21 13:51:34,363 - INFO - Verified VN network id 9 for VN 9cb45953-ee8f-423f-be47-981a528baf7f
2025-05-21 13:51:34,363 - INFO - Verifications in API Server for VN ctest-vn-82807079 passed
2025-05-21 13:51:34,364 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/9cb45953-ee8f-423f-be47-981a528baf7f
2025-05-21 13:51:34,380 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/2530cece-1733-4ca9-ac8c-5f637a55177e
2025-05-21 13:51:34,392 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/2530cece-1733-4ca9-ac8c-5f637a55177e
2025-05-21 13:51:34,404 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/41bd8423-03eb-4ceb-8922-4585f056ee67
2025-05-21 13:51:34,421 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-45441608:ctest-vn-82807079', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-45441608', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11291748382744199743', 'uuid-lslong': '13711094829374222207'}, 'enable': 'true', 'created': '2025-05-21T13:51:31', 'last-modified': '2025-05-21T13:51:33', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.271740'}
2025-05-21 13:51:34,429 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-21 13:51:34,429 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-82807079 passed
2025-05-21 13:51:34,429 - DEBUG - ====Verifying policy data for ctest-vn-82807079 in API_Server ======
2025-05-21 13:51:34,429 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-05-21 13:51:34,438 - DEBUG - Requesting: http://10.0.0.254:8082/domain/896f3670-2d87-4ab0-958f-1abdf8f8d010
2025-05-21 13:51:34,453 - DEBUG - Requesting: http://10.0.0.254:8082/project/6aa946c1-e707-440c-9a28-434b565574cc
2025-05-21 13:51:34,538 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/9cb45953-ee8f-423f-be47-981a528baf7f
2025-05-21 13:51:34,554 - DEBUG - ==>Verifying data for policy with id: d1170b07-ab2d-4803-bc67-e4e06b311b18, fqn: ['default-domain', 'ctest-TestBasicPolicy-45441608', 'ctest-policy-allow-all-88763189']
2025-05-21 13:51:34,555 - INFO - VN ctest-vn-82807079 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-21 13:51:34,555 - DEBUG - Verifying the vn in opserver
2025-05-21 13:51:34,555 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-45441608:ctest-vn-82807079 virtual network link through opserver 10.0.0.254
2025-05-21 13:51:34,555 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-05-21 13:51:34,862 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-05-21 13:51:34,934 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-45441608:ctest-vn-82807079', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-45441608:ctest-vn-82807079?flat'}
2025-05-21 13:51:34,934 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-45441608:ctest-vn-82807079 is found in opserver
2025-05-21 13:51:34,951 - DEBUG - Do not have enough data to verify VN in agent
2025-05-21 13:51:34,958 - DEBUG - VRF ids for VN ctest-vn-82807079: {}
2025-05-21 13:51:34,958 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-05-21 13:51:34,965 - DEBUG - Requesting: http://10.0.0.254:8082/domain/896f3670-2d87-4ab0-958f-1abdf8f8d010
2025-05-21 13:51:34,983 - DEBUG - Requesting: http://10.0.0.254:8082/project/6aa946c1-e707-440c-9a28-434b565574cc
2025-05-21 13:51:35,062 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/4c44cedf-92cd-431b-a43e-b23b0287b9a4
2025-05-21 13:51:35,079 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/4c44cedf-92cd-431b-a43e-b23b0287b9a4
2025-05-21 13:51:35,091 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/306ed66d-d681-451f-83c4-d9404935d96c
2025-05-21 13:51:35,099 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/306ed66d-d681-451f-83c4-d9404935d96c
2025-05-21 13:51:35,107 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/e0499192-07f6-4396-821d-bbfb127c7a8a
2025-05-21 13:51:35,116 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-21 13:51:35,116 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/4c44cedf-92cd-431b-a43e-b23b0287b9a4
2025-05-21 13:51:35,130 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/306ed66d-d681-451f-83c4-d9404935d96c
2025-05-21 13:51:35,152 - INFO - Verified VN network id 10 for VN 4c44cedf-92cd-431b-a43e-b23b0287b9a4
2025-05-21 13:51:35,152 - INFO - Verifications in API Server for VN ctest-vn-46444703 passed
2025-05-21 13:51:35,152 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/4c44cedf-92cd-431b-a43e-b23b0287b9a4
2025-05-21 13:51:35,167 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/306ed66d-d681-451f-83c4-d9404935d96c
2025-05-21 13:51:35,176 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/306ed66d-d681-451f-83c4-d9404935d96c
2025-05-21 13:51:35,186 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/e0499192-07f6-4396-821d-bbfb127c7a8a
2025-05-21 13:51:35,201 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-45441608:ctest-vn-46444703', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-45441608', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5495744904934802203', 'uuid-lslong': '11835092837291506084'}, 'enable': 'true', 'created': '2025-05-21T13:51:32', 'last-modified': '2025-05-21T13:51:33', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.673912'}
2025-05-21 13:51:35,209 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-21 13:51:35,209 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-46444703 passed
2025-05-21 13:51:35,210 - DEBUG - ====Verifying policy data for ctest-vn-46444703 in API_Server ======
2025-05-21 13:51:35,210 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-05-21 13:51:35,216 - DEBUG - Requesting: http://10.0.0.254:8082/domain/896f3670-2d87-4ab0-958f-1abdf8f8d010
2025-05-21 13:51:35,229 - DEBUG - Requesting: http://10.0.0.254:8082/project/6aa946c1-e707-440c-9a28-434b565574cc
2025-05-21 13:51:35,306 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/4c44cedf-92cd-431b-a43e-b23b0287b9a4
2025-05-21 13:51:35,321 - DEBUG - ==>Verifying data for policy with id: d1170b07-ab2d-4803-bc67-e4e06b311b18, fqn: ['default-domain', 'ctest-TestBasicPolicy-45441608', 'ctest-policy-allow-all-88763189']
2025-05-21 13:51:35,321 - INFO - VN ctest-vn-46444703 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-21 13:51:35,321 - DEBUG - Verifying the vn in opserver
2025-05-21 13:51:35,321 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-45441608:ctest-vn-46444703 virtual network link through opserver 10.0.0.254
2025-05-21 13:51:35,321 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-05-21 13:51:35,333 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-45441608:ctest-vn-46444703', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-45441608:ctest-vn-46444703?flat'}
2025-05-21 13:51:35,333 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-45441608:ctest-vn-46444703 is found in opserver
2025-05-21 13:51:35,348 - DEBUG - Do not have enough data to verify VN in agent
2025-05-21 13:51:35,357 - DEBUG - VRF ids for VN ctest-vn-46444703: {}
2025-05-21 13:51:35,416 - DEBUG - Services list from nova: [