2025-11-03 21:42:45,727 - INFO - Domain Default found not creating
2025-11-03 21:42:45,881 - INFO - Project ctest-TestBasicPolicy-46867377 not found, creating it
2025-11-03 21:42:46,345 - INFO - Created Project:ctest-TestBasicPolicy-46867377, ID : 34d65544-5e8b-4e06-8378-628eeee50545
2025-11-03 21:42:47,793 - INFO - ================================================================================
2025-11-03 21:42:47,794 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-03 21:42:47,794 - 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-11-03 21:42:48,049 - DEBUG - Nothing to compare xmpp stats {'10.0.0.48': {'10.20.0.17': '0'}} with
2025-11-03 21:42:48,049 - INFO - Initial checks done. Running the testcase now
2025-11-03 21:42:48,049 - INFO -
2025-11-03 21:42:48,614 - DEBUG - Response for create_network : {'network': {'id': '814402ef-d67d-4d19-835b-609df03c2fca', 'name': 'ctest-vn-93011727', 'tenant_id': '34d655445e8b4e068378628eeee50545', 'project_id': '34d655445e8b4e068378628eeee50545', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-46867377', 'ctest-vn-93011727'], 'port_security_enabled': True, 'description': ''}}
2025-11-03 21:42:48,794 - DEBUG - Response for create_subnet : {'subnet': {'id': '9b239508-be98-4353-9fcd-4e1090bca606', 'name': '', 'tenant_id': '34d655445e8b4e068378628eeee50545', 'network_id': '814402ef-d67d-4d19-835b-609df03c2fca', 'ip_version': 4, 'cidr': '44.112.45.192/26', 'allocation_pools': [{'start': '44.112.45.194', 'end': '44.112.45.254'}], 'gateway_ip': '44.112.45.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '44.112.45.194', 'tags': [], 'project_id': '34d655445e8b4e068378628eeee50545'}}
2025-11-03 21:42:48,814 - INFO - Created VN ctest-vn-93011727
2025-11-03 21:42:48,868 - DEBUG - VN ctest-vn-93011727 UUID is 814402ef-d67d-4d19-835b-609df03c2fca
2025-11-03 21:42:49,164 - DEBUG - Response for create_network : {'network': {'id': '5b37adde-01f9-4b89-b552-3c85d7478828', 'name': 'ctest-vn-80211215', 'tenant_id': '34d655445e8b4e068378628eeee50545', 'project_id': '34d655445e8b4e068378628eeee50545', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-46867377', 'ctest-vn-80211215'], 'port_security_enabled': True, 'description': ''}}
2025-11-03 21:42:49,321 - DEBUG - Response for create_subnet : {'subnet': {'id': '8724ba58-506b-4537-a3c1-b6fe2ac6abb4', 'name': '', 'tenant_id': '34d655445e8b4e068378628eeee50545', 'network_id': '5b37adde-01f9-4b89-b552-3c85d7478828', 'ip_version': 4, 'cidr': '66.229.55.192/26', 'allocation_pools': [{'start': '66.229.55.194', 'end': '66.229.55.254'}], 'gateway_ip': '66.229.55.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '66.229.55.194', 'tags': [], 'project_id': '34d655445e8b4e068378628eeee50545'}}
2025-11-03 21:42:49,337 - INFO - Created VN ctest-vn-80211215
2025-11-03 21:42:49,388 - DEBUG - VN ctest-vn-80211215 UUID is 5b37adde-01f9-4b89-b552-3c85d7478828
2025-11-03 21:42:49,501 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-46867377:ctest-vn-93011727, 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-46867377:ctest-vn-80211215, 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-11-03 21:42:49,784 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '814402ef-d67d-4d19-835b-609df03c2fca', 'name': 'ctest-vn-93011727', 'tenant_id': '34d655445e8b4e068378628eeee50545', 'project_id': '34d655445e8b4e068378628eeee50545', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9b239508-be98-4353-9fcd-4e1090bca606'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-46867377', 'ctest-vn-93011727'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-46867377', 'ctest-policy-allow-all-69265535']], 'subnet_ipam': [{'subnet_cidr': '44.112.45.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-03 21:42:49,962 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5b37adde-01f9-4b89-b552-3c85d7478828', 'name': 'ctest-vn-80211215', 'tenant_id': '34d655445e8b4e068378628eeee50545', 'project_id': '34d655445e8b4e068378628eeee50545', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8724ba58-506b-4537-a3c1-b6fe2ac6abb4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-46867377', 'ctest-vn-80211215'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-46867377', 'ctest-policy-allow-all-69265535']], 'subnet_ipam': [{'subnet_cidr': '66.229.55.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-03 21:42:50,136 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-11-03 21:42:50,441 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-11-03 21:42:50,471 - DEBUG - Requesting: http://10.0.0.48:8082/domain/08e10bd5-c2ff-49ee-8138-17c957da47f5
2025-11-03 21:42:50,481 - DEBUG - Requesting: http://10.0.0.48:8082/project/34d65544-5e8b-4e06-8378-628eeee50545
2025-11-03 21:42:50,553 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/814402ef-d67d-4d19-835b-609df03c2fca
2025-11-03 21:42:50,564 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/814402ef-d67d-4d19-835b-609df03c2fca
2025-11-03 21:42:50,573 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/4b0469f4-c984-46fe-b505-4da4f3d2e0f2
2025-11-03 21:42:50,579 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/4b0469f4-c984-46fe-b505-4da4f3d2e0f2
2025-11-03 21:42:50,585 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/2db9d03d-36b7-4dd9-a6df-6b5843701955
2025-11-03 21:42:50,590 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-03 21:42:50,590 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/814402ef-d67d-4d19-835b-609df03c2fca
2025-11-03 21:42:50,597 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/4b0469f4-c984-46fe-b505-4da4f3d2e0f2
2025-11-03 21:42:50,609 - INFO - Verified VN network id 11 for VN 814402ef-d67d-4d19-835b-609df03c2fca
2025-11-03 21:42:50,609 - INFO - Verifications in API Server for VN ctest-vn-93011727 passed
2025-11-03 21:42:50,610 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/814402ef-d67d-4d19-835b-609df03c2fca
2025-11-03 21:42:50,618 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/4b0469f4-c984-46fe-b505-4da4f3d2e0f2
2025-11-03 21:42:50,624 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/4b0469f4-c984-46fe-b505-4da4f3d2e0f2
2025-11-03 21:42:50,630 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/2db9d03d-36b7-4dd9-a6df-6b5843701955
2025-11-03 21:42:50,641 - DEBUG - Control-node 10.0.0.48 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-46867377:ctest-vn-93011727', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-46867377', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9314573158428003609', 'uuid-lslong': '9465265273305837514'}, 'enable': 'true', 'created': '2025-11-03T21:42:48', 'last-modified': '2025-11-03T21:42:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.876136'}
2025-11-03 21:42:50,648 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-03 21:42:50,649 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-93011727 passed
2025-11-03 21:42:50,649 - DEBUG - ====Verifying policy data for ctest-vn-93011727 in API_Server ======
2025-11-03 21:42:50,649 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-11-03 21:42:50,655 - DEBUG - Requesting: http://10.0.0.48:8082/domain/08e10bd5-c2ff-49ee-8138-17c957da47f5
2025-11-03 21:42:50,665 - DEBUG - Requesting: http://10.0.0.48:8082/project/34d65544-5e8b-4e06-8378-628eeee50545
2025-11-03 21:42:50,732 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/814402ef-d67d-4d19-835b-609df03c2fca
2025-11-03 21:42:50,742 - DEBUG - ==>Verifying data for policy with id: 20f2f5b2-7f03-4c8a-930a-53da0f994fa7, fqn: ['default-domain', 'ctest-TestBasicPolicy-46867377', 'ctest-policy-allow-all-69265535']
2025-11-03 21:42:50,742 - INFO - VN ctest-vn-93011727 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-03 21:42:50,742 - DEBUG - Verifying the vn in opserver
2025-11-03 21:42:50,742 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-46867377:ctest-vn-93011727 virtual network link through opserver 10.0.0.48
2025-11-03 21:42:50,742 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks
2025-11-03 21:42:51,057 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks
2025-11-03 21:42:51,112 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-46867377:ctest-vn-93011727', 'href': 'http://10.0.0.48:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-46867377:ctest-vn-93011727?flat'}
2025-11-03 21:42:51,112 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-46867377:ctest-vn-93011727 is found in opserver
2025-11-03 21:42:51,126 - DEBUG - Do not have enough data to verify VN in agent
2025-11-03 21:42:51,134 - DEBUG - VRF ids for VN ctest-vn-93011727: {}
2025-11-03 21:42:51,134 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-11-03 21:42:51,141 - DEBUG - Requesting: http://10.0.0.48:8082/domain/08e10bd5-c2ff-49ee-8138-17c957da47f5
2025-11-03 21:42:51,151 - DEBUG - Requesting: http://10.0.0.48:8082/project/34d65544-5e8b-4e06-8378-628eeee50545
2025-11-03 21:42:51,219 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/5b37adde-01f9-4b89-b552-3c85d7478828
2025-11-03 21:42:51,232 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/5b37adde-01f9-4b89-b552-3c85d7478828
2025-11-03 21:42:51,240 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/97d82ea2-21b6-42ef-a18d-cfebcf9c21cb
2025-11-03 21:42:51,246 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/97d82ea2-21b6-42ef-a18d-cfebcf9c21cb
2025-11-03 21:42:51,254 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/75070d4c-0054-441e-9745-7a0325a748ea
2025-11-03 21:42:51,263 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-03 21:42:51,263 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/5b37adde-01f9-4b89-b552-3c85d7478828
2025-11-03 21:42:51,271 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/97d82ea2-21b6-42ef-a18d-cfebcf9c21cb
2025-11-03 21:42:51,283 - INFO - Verified VN network id 12 for VN 5b37adde-01f9-4b89-b552-3c85d7478828
2025-11-03 21:42:51,283 - INFO - Verifications in API Server for VN ctest-vn-80211215 passed
2025-11-03 21:42:51,283 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/5b37adde-01f9-4b89-b552-3c85d7478828
2025-11-03 21:42:51,293 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/97d82ea2-21b6-42ef-a18d-cfebcf9c21cb
2025-11-03 21:42:51,298 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/97d82ea2-21b6-42ef-a18d-cfebcf9c21cb
2025-11-03 21:42:51,304 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/75070d4c-0054-441e-9745-7a0325a748ea
2025-11-03 21:42:51,315 - DEBUG - Control-node 10.0.0.48 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-46867377:ctest-vn-80211215', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-46867377', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6572913350197988233', 'uuid-lslong': '13065572014495336488'}, 'enable': 'true', 'created': '2025-11-03T21:42:49', 'last-modified': '2025-11-03T21:42:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.377005'}
2025-11-03 21:42:51,322 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-03 21:42:51,322 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-80211215 passed
2025-11-03 21:42:51,322 - DEBUG - ====Verifying policy data for ctest-vn-80211215 in API_Server ======
2025-11-03 21:42:51,322 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-11-03 21:42:51,327 - DEBUG - Requesting: http://10.0.0.48:8082/domain/08e10bd5-c2ff-49ee-8138-17c957da47f5
2025-11-03 21:42:51,337 - DEBUG - Requesting: http://10.0.0.48:8082/project/34d65544-5e8b-4e06-8378-628eeee50545
2025-11-03 21:42:51,402 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/5b37adde-01f9-4b89-b552-3c85d7478828
2025-11-03 21:42:51,411 - DEBUG - ==>Verifying data for policy with id: 20f2f5b2-7f03-4c8a-930a-53da0f994fa7, fqn: ['default-domain', 'ctest-TestBasicPolicy-46867377', 'ctest-policy-allow-all-69265535']
2025-11-03 21:42:51,411 - INFO - VN ctest-vn-80211215 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-03 21:42:51,411 - DEBUG - Verifying the vn in opserver
2025-11-03 21:42:51,411 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-46867377:ctest-vn-80211215 virtual network link through opserver 10.0.0.48
2025-11-03 21:42:51,411 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks
2025-11-03 21:42:51,420 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-46867377:ctest-vn-80211215', 'href': 'http://10.0.0.48:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-46867377:ctest-vn-80211215?flat'}
2025-11-03 21:42:51,420 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-46867377:ctest-vn-80211215 is found in opserver
2025-11-03 21:42:51,429 - DEBUG - Do not have enough data to verify VN in agent
2025-11-03 21:42:51,434 - DEBUG - VRF ids for VN ctest-vn-80211215: {}
2025-11-03 21:42:51,493 - DEBUG - Services list from nova: [