2026-02-05 23:08:05,980 - INFO - Domain Default found not creating
2026-02-05 23:08:06,154 - INFO - Project ctest-TestBasicPolicy-26098336 not found, creating it
2026-02-05 23:08:06,610 - INFO - Created Project:ctest-TestBasicPolicy-26098336, ID : 56e15c92-f911-47ae-9238-71f038bd3f37
2026-02-05 23:08:08,005 - INFO - ================================================================================
2026-02-05 23:08:08,005 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-02-05 23:08:08,005 - 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
2026-02-05 23:08:08,265 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with
2026-02-05 23:08:08,265 - INFO - Initial checks done. Running the testcase now
2026-02-05 23:08:08,265 - INFO -
2026-02-05 23:08:08,783 - DEBUG - Response for create_network : {'network': {'id': 'b725d1db-c48d-4227-b060-c7e3a76e4196', 'name': 'ctest-vn-22705834', 'tenant_id': '56e15c92f91147ae923871f038bd3f37', 'project_id': '56e15c92f91147ae923871f038bd3f37', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-26098336', 'ctest-vn-22705834'], 'port_security_enabled': True, 'description': ''}}
2026-02-05 23:08:08,966 - DEBUG - Response for create_subnet : {'subnet': {'id': '5efacd0d-63df-4114-9ac9-5bbad855cac2', 'name': '', 'tenant_id': '56e15c92f91147ae923871f038bd3f37', 'network_id': 'b725d1db-c48d-4227-b060-c7e3a76e4196', 'ip_version': 4, 'cidr': '201.107.187.0/26', 'allocation_pools': [{'start': '201.107.187.2', 'end': '201.107.187.62'}], 'gateway_ip': '201.107.187.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '201.107.187.2', 'tags': [], 'project_id': '56e15c92f91147ae923871f038bd3f37'}}
2026-02-05 23:08:08,982 - INFO - Created VN ctest-vn-22705834
2026-02-05 23:08:09,032 - DEBUG - VN ctest-vn-22705834 UUID is b725d1db-c48d-4227-b060-c7e3a76e4196
2026-02-05 23:08:09,372 - DEBUG - Response for create_network : {'network': {'id': '4e5523c4-0b77-41e8-b0cd-286c5635310d', 'name': 'ctest-vn-82674427', 'tenant_id': '56e15c92f91147ae923871f038bd3f37', 'project_id': '56e15c92f91147ae923871f038bd3f37', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-26098336', 'ctest-vn-82674427'], 'port_security_enabled': True, 'description': ''}}
2026-02-05 23:08:09,578 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ef563e32-ea1d-4103-8146-039f54075298', 'name': '', 'tenant_id': '56e15c92f91147ae923871f038bd3f37', 'network_id': '4e5523c4-0b77-41e8-b0cd-286c5635310d', 'ip_version': 4, 'cidr': '109.66.50.128/26', 'allocation_pools': [{'start': '109.66.50.130', 'end': '109.66.50.190'}], 'gateway_ip': '109.66.50.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '109.66.50.130', 'tags': [], 'project_id': '56e15c92f91147ae923871f038bd3f37'}}
2026-02-05 23:08:09,593 - INFO - Created VN ctest-vn-82674427
2026-02-05 23:08:09,644 - DEBUG - VN ctest-vn-82674427 UUID is 4e5523c4-0b77-41e8-b0cd-286c5635310d
2026-02-05 23:08:09,792 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-26098336:ctest-vn-22705834, 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-26098336:ctest-vn-82674427, 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]
2026-02-05 23:08:10,068 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b725d1db-c48d-4227-b060-c7e3a76e4196', 'name': 'ctest-vn-22705834', 'tenant_id': '56e15c92f91147ae923871f038bd3f37', 'project_id': '56e15c92f91147ae923871f038bd3f37', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5efacd0d-63df-4114-9ac9-5bbad855cac2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-26098336', 'ctest-vn-22705834'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-26098336', 'ctest-policy-allow-all-39058119']], 'subnet_ipam': [{'subnet_cidr': '201.107.187.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-02-05 23:08:10,283 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4e5523c4-0b77-41e8-b0cd-286c5635310d', 'name': 'ctest-vn-82674427', 'tenant_id': '56e15c92f91147ae923871f038bd3f37', 'project_id': '56e15c92f91147ae923871f038bd3f37', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ef563e32-ea1d-4103-8146-039f54075298'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-26098336', 'ctest-vn-82674427'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-26098336', 'ctest-policy-allow-all-39058119']], 'subnet_ipam': [{'subnet_cidr': '109.66.50.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-02-05 23:08:10,432 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-02-05 23:08:10,739 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-02-05 23:08:10,767 - DEBUG - Requesting: http://10.0.0.50:8082/domain/86ed1632-362f-4081-9c94-744cf4f0b5e8
2026-02-05 23:08:10,777 - DEBUG - Requesting: http://10.0.0.50:8082/project/56e15c92-f911-47ae-9238-71f038bd3f37
2026-02-05 23:08:10,843 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/b725d1db-c48d-4227-b060-c7e3a76e4196
2026-02-05 23:08:10,852 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/b725d1db-c48d-4227-b060-c7e3a76e4196
2026-02-05 23:08:10,859 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/fc75cce0-9e04-4021-91ed-41a4668ec7cb
2026-02-05 23:08:10,864 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/fc75cce0-9e04-4021-91ed-41a4668ec7cb
2026-02-05 23:08:10,869 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/1cdff629-42f3-4b3a-bb40-7676aead5946
2026-02-05 23:08:10,873 - DEBUG - Route Targets: ['target:64512:8000004']
2026-02-05 23:08:10,874 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/b725d1db-c48d-4227-b060-c7e3a76e4196
2026-02-05 23:08:10,881 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/fc75cce0-9e04-4021-91ed-41a4668ec7cb
2026-02-05 23:08:10,891 - INFO - Verified VN network id 11 for VN b725d1db-c48d-4227-b060-c7e3a76e4196
2026-02-05 23:08:10,891 - INFO - Verifications in API Server for VN ctest-vn-22705834 passed
2026-02-05 23:08:10,891 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/b725d1db-c48d-4227-b060-c7e3a76e4196
2026-02-05 23:08:10,898 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/fc75cce0-9e04-4021-91ed-41a4668ec7cb
2026-02-05 23:08:10,903 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/fc75cce0-9e04-4021-91ed-41a4668ec7cb
2026-02-05 23:08:10,908 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/1cdff629-42f3-4b3a-bb40-7676aead5946
2026-02-05 23:08:10,917 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-26098336:ctest-vn-22705834', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-26098336', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13197185024904741415', 'uuid-lslong': '12709377929020064150'}, 'enable': 'true', 'created': '2026-02-05T23:08:08', 'last-modified': '2026-02-05T23:08:10', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.870551'}
2026-02-05 23:08:10,922 - DEBUG - Route Targets: ['target:64512:8000004']
2026-02-05 23:08:10,922 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-22705834 passed
2026-02-05 23:08:10,922 - DEBUG - ====Verifying policy data for ctest-vn-22705834 in API_Server ======
2026-02-05 23:08:10,922 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-02-05 23:08:10,926 - DEBUG - Requesting: http://10.0.0.50:8082/domain/86ed1632-362f-4081-9c94-744cf4f0b5e8
2026-02-05 23:08:10,936 - DEBUG - Requesting: http://10.0.0.50:8082/project/56e15c92-f911-47ae-9238-71f038bd3f37
2026-02-05 23:08:11,005 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/b725d1db-c48d-4227-b060-c7e3a76e4196
2026-02-05 23:08:11,012 - DEBUG - ==>Verifying data for policy with id: 18670dff-1b50-4278-8e9e-9eb36e926daa, fqn: ['default-domain', 'ctest-TestBasicPolicy-26098336', 'ctest-policy-allow-all-39058119']
2026-02-05 23:08:11,012 - INFO - VN ctest-vn-22705834 Policy verification: verify_vn_policy_in_api_server, status: True
2026-02-05 23:08:11,013 - DEBUG - Verifying the vn in opserver
2026-02-05 23:08:11,013 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-26098336:ctest-vn-22705834 virtual network link through opserver 10.0.0.50
2026-02-05 23:08:11,013 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-02-05 23:08:11,306 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-02-05 23:08:11,373 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-26098336:ctest-vn-22705834', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-26098336:ctest-vn-22705834?flat'}
2026-02-05 23:08:11,373 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-26098336:ctest-vn-22705834 is found in opserver
2026-02-05 23:08:11,382 - DEBUG - Do not have enough data to verify VN in agent
2026-02-05 23:08:11,387 - DEBUG - VRF ids for VN ctest-vn-22705834: {}
2026-02-05 23:08:11,387 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-02-05 23:08:11,392 - DEBUG - Requesting: http://10.0.0.50:8082/domain/86ed1632-362f-4081-9c94-744cf4f0b5e8
2026-02-05 23:08:11,401 - DEBUG - Requesting: http://10.0.0.50:8082/project/56e15c92-f911-47ae-9238-71f038bd3f37
2026-02-05 23:08:11,467 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/4e5523c4-0b77-41e8-b0cd-286c5635310d
2026-02-05 23:08:11,482 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/4e5523c4-0b77-41e8-b0cd-286c5635310d
2026-02-05 23:08:11,489 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/539b103f-c1d2-4c6f-ab25-c71aa862decd
2026-02-05 23:08:11,495 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/539b103f-c1d2-4c6f-ab25-c71aa862decd
2026-02-05 23:08:11,500 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/6b057a3b-bac6-4197-9d96-93de0f989a2e
2026-02-05 23:08:11,509 - DEBUG - Route Targets: ['target:64512:8000005']
2026-02-05 23:08:11,509 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/4e5523c4-0b77-41e8-b0cd-286c5635310d
2026-02-05 23:08:11,517 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/539b103f-c1d2-4c6f-ab25-c71aa862decd
2026-02-05 23:08:11,528 - INFO - Verified VN network id 12 for VN 4e5523c4-0b77-41e8-b0cd-286c5635310d
2026-02-05 23:08:11,528 - INFO - Verifications in API Server for VN ctest-vn-82674427 passed
2026-02-05 23:08:11,528 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/4e5523c4-0b77-41e8-b0cd-286c5635310d
2026-02-05 23:08:11,536 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/539b103f-c1d2-4c6f-ab25-c71aa862decd
2026-02-05 23:08:11,542 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/539b103f-c1d2-4c6f-ab25-c71aa862decd
2026-02-05 23:08:11,547 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/6b057a3b-bac6-4197-9d96-93de0f989a2e
2026-02-05 23:08:11,562 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-26098336:ctest-vn-82674427', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-26098336', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5644457032891711976', 'uuid-lslong': '12739883366668906765'}, 'enable': 'true', 'created': '2026-02-05T23:08:09', 'last-modified': '2026-02-05T23:08:10', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.300306'}
2026-02-05 23:08:11,568 - DEBUG - Route Targets: ['target:64512:8000005']
2026-02-05 23:08:11,568 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-82674427 passed
2026-02-05 23:08:11,568 - DEBUG - ====Verifying policy data for ctest-vn-82674427 in API_Server ======
2026-02-05 23:08:11,568 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-02-05 23:08:11,573 - DEBUG - Requesting: http://10.0.0.50:8082/domain/86ed1632-362f-4081-9c94-744cf4f0b5e8
2026-02-05 23:08:11,582 - DEBUG - Requesting: http://10.0.0.50:8082/project/56e15c92-f911-47ae-9238-71f038bd3f37
2026-02-05 23:08:11,648 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/4e5523c4-0b77-41e8-b0cd-286c5635310d
2026-02-05 23:08:11,658 - DEBUG - ==>Verifying data for policy with id: 18670dff-1b50-4278-8e9e-9eb36e926daa, fqn: ['default-domain', 'ctest-TestBasicPolicy-26098336', 'ctest-policy-allow-all-39058119']
2026-02-05 23:08:11,658 - INFO - VN ctest-vn-82674427 Policy verification: verify_vn_policy_in_api_server, status: True
2026-02-05 23:08:11,658 - DEBUG - Verifying the vn in opserver
2026-02-05 23:08:11,658 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-26098336:ctest-vn-82674427 virtual network link through opserver 10.0.0.50
2026-02-05 23:08:11,658 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-02-05 23:08:11,667 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-26098336:ctest-vn-82674427', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-26098336:ctest-vn-82674427?flat'}
2026-02-05 23:08:11,667 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-26098336:ctest-vn-82674427 is found in opserver
2026-02-05 23:08:11,675 - DEBUG - Do not have enough data to verify VN in agent
2026-02-05 23:08:11,679 - DEBUG - VRF ids for VN ctest-vn-82674427: {}
2026-02-05 23:08:11,728 - DEBUG - Services list from nova: [