2025-07-15 16:38:50,126 - INFO - Domain Default found not creating
2025-07-15 16:38:50,308 - INFO - Project ctest-TestBasicPolicy-64880594 not found, creating it
2025-07-15 16:38:50,815 - INFO - Created Project:ctest-TestBasicPolicy-64880594, ID : 12c560d6-fe31-4d2a-8b61-eb49886d1193
2025-07-15 16:38:52,370 - INFO - ================================================================================
2025-07-15 16:38:52,370 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-07-15 16:38:52,370 - 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-07-15 16:38:52,630 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.0.0.33': '0'}} with
2025-07-15 16:38:52,631 - INFO - Initial checks done. Running the testcase now
2025-07-15 16:38:52,631 - INFO -
2025-07-15 16:38:53,171 - DEBUG - Response for create_network : {'network': {'id': 'bab3fac9-655e-48be-98bd-9e3f51ecb2b1', 'name': 'ctest-vn-59724882', 'tenant_id': '12c560d6fe314d2a8b61eb49886d1193', 'project_id': '12c560d6fe314d2a8b61eb49886d1193', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-64880594', 'ctest-vn-59724882'], 'port_security_enabled': True, 'description': ''}}
2025-07-15 16:38:53,430 - DEBUG - Response for create_subnet : {'subnet': {'id': 'dcddaf23-2f13-46ab-9fc5-fae115fd52e5', 'name': '', 'tenant_id': '12c560d6fe314d2a8b61eb49886d1193', 'network_id': 'bab3fac9-655e-48be-98bd-9e3f51ecb2b1', 'ip_version': 4, 'cidr': '194.7.129.64/26', 'allocation_pools': [{'start': '194.7.129.66', 'end': '194.7.129.126'}], 'gateway_ip': '194.7.129.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '194.7.129.66', 'tags': [], 'project_id': '12c560d6fe314d2a8b61eb49886d1193'}}
2025-07-15 16:38:53,452 - INFO - Created VN ctest-vn-59724882
2025-07-15 16:38:53,509 - DEBUG - VN ctest-vn-59724882 UUID is bab3fac9-655e-48be-98bd-9e3f51ecb2b1
2025-07-15 16:38:53,839 - DEBUG - Response for create_network : {'network': {'id': '3152217e-3130-4193-9879-df8909f78f1b', 'name': 'ctest-vn-91937895', 'tenant_id': '12c560d6fe314d2a8b61eb49886d1193', 'project_id': '12c560d6fe314d2a8b61eb49886d1193', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-64880594', 'ctest-vn-91937895'], 'port_security_enabled': True, 'description': ''}}
2025-07-15 16:38:54,050 - DEBUG - Response for create_subnet : {'subnet': {'id': '5827efc7-d6a9-47ba-b999-2941f1f0c60f', 'name': '', 'tenant_id': '12c560d6fe314d2a8b61eb49886d1193', 'network_id': '3152217e-3130-4193-9879-df8909f78f1b', 'ip_version': 4, 'cidr': '34.244.83.64/26', 'allocation_pools': [{'start': '34.244.83.66', 'end': '34.244.83.126'}], 'gateway_ip': '34.244.83.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '34.244.83.66', 'tags': [], 'project_id': '12c560d6fe314d2a8b61eb49886d1193'}}
2025-07-15 16:38:54,067 - INFO - Created VN ctest-vn-91937895
2025-07-15 16:38:54,117 - DEBUG - VN ctest-vn-91937895 UUID is 3152217e-3130-4193-9879-df8909f78f1b
2025-07-15 16:38:54,269 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-64880594:ctest-vn-59724882, 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-64880594:ctest-vn-91937895, 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-07-15 16:38:54,584 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'bab3fac9-655e-48be-98bd-9e3f51ecb2b1', 'name': 'ctest-vn-59724882', 'tenant_id': '12c560d6fe314d2a8b61eb49886d1193', 'project_id': '12c560d6fe314d2a8b61eb49886d1193', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['dcddaf23-2f13-46ab-9fc5-fae115fd52e5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-64880594', 'ctest-vn-59724882'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-64880594', 'ctest-policy-allow-all-37131285']], 'subnet_ipam': [{'subnet_cidr': '194.7.129.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-15 16:38:54,862 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3152217e-3130-4193-9879-df8909f78f1b', 'name': 'ctest-vn-91937895', 'tenant_id': '12c560d6fe314d2a8b61eb49886d1193', 'project_id': '12c560d6fe314d2a8b61eb49886d1193', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5827efc7-d6a9-47ba-b999-2941f1f0c60f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-64880594', 'ctest-vn-91937895'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-64880594', 'ctest-policy-allow-all-37131285']], 'subnet_ipam': [{'subnet_cidr': '34.244.83.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-15 16:38:55,005 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-07-15 16:38:55,319 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-07-15 16:38:55,353 - DEBUG - Requesting: http://10.0.0.33:8082/domain/e8181d1a-4d6b-42cc-84bd-0cfac13513ed
2025-07-15 16:38:55,367 - DEBUG - Requesting: http://10.0.0.33:8082/project/12c560d6-fe31-4d2a-8b61-eb49886d1193
2025-07-15 16:38:55,441 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/bab3fac9-655e-48be-98bd-9e3f51ecb2b1
2025-07-15 16:38:55,451 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/bab3fac9-655e-48be-98bd-9e3f51ecb2b1
2025-07-15 16:38:55,460 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/0342c352-b94f-45a0-a843-ecf1fdeeda91
2025-07-15 16:38:55,467 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/0342c352-b94f-45a0-a843-ecf1fdeeda91
2025-07-15 16:38:55,474 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/9b51e0b5-f17a-45d9-bbd8-c069ea55a44c
2025-07-15 16:38:55,481 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-15 16:38:55,481 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/bab3fac9-655e-48be-98bd-9e3f51ecb2b1
2025-07-15 16:38:55,492 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/0342c352-b94f-45a0-a843-ecf1fdeeda91
2025-07-15 16:38:55,508 - INFO - Verified VN network id 8 for VN bab3fac9-655e-48be-98bd-9e3f51ecb2b1
2025-07-15 16:38:55,508 - INFO - Verifications in API Server for VN ctest-vn-59724882 passed
2025-07-15 16:38:55,508 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/bab3fac9-655e-48be-98bd-9e3f51ecb2b1
2025-07-15 16:38:55,517 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/0342c352-b94f-45a0-a843-ecf1fdeeda91
2025-07-15 16:38:55,525 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/0342c352-b94f-45a0-a843-ecf1fdeeda91
2025-07-15 16:38:55,531 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/9b51e0b5-f17a-45d9-bbd8-c069ea55a44c
2025-07-15 16:38:55,544 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-64880594:ctest-vn-59724882', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-64880594', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13453372254781851838', 'uuid-lslong': '11006127059157955249'}, 'enable': 'true', 'created': '2025-07-15T16:38:53', 'last-modified': '2025-07-15T16:38:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.985495'}
2025-07-15 16:38:55,549 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-15 16:38:55,549 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-59724882 passed
2025-07-15 16:38:55,550 - DEBUG - ====Verifying policy data for ctest-vn-59724882 in API_Server ======
2025-07-15 16:38:55,550 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-07-15 16:38:55,555 - DEBUG - Requesting: http://10.0.0.33:8082/domain/e8181d1a-4d6b-42cc-84bd-0cfac13513ed
2025-07-15 16:38:55,566 - DEBUG - Requesting: http://10.0.0.33:8082/project/12c560d6-fe31-4d2a-8b61-eb49886d1193
2025-07-15 16:38:55,632 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/bab3fac9-655e-48be-98bd-9e3f51ecb2b1
2025-07-15 16:38:55,641 - DEBUG - ==>Verifying data for policy with id: de0dcc5e-8a2b-43c4-890e-2493bf09b37e, fqn: ['default-domain', 'ctest-TestBasicPolicy-64880594', 'ctest-policy-allow-all-37131285']
2025-07-15 16:38:55,641 - INFO - VN ctest-vn-59724882 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-15 16:38:55,641 - DEBUG - Verifying the vn in opserver
2025-07-15 16:38:55,642 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-64880594:ctest-vn-59724882 virtual network link through opserver 10.0.0.33
2025-07-15 16:38:55,642 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-07-15 16:38:55,930 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-07-15 16:38:55,986 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-64880594:ctest-vn-59724882', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-64880594:ctest-vn-59724882?flat'}
2025-07-15 16:38:55,986 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-64880594:ctest-vn-59724882 is found in opserver
2025-07-15 16:38:55,995 - DEBUG - Do not have enough data to verify VN in agent
2025-07-15 16:38:56,000 - DEBUG - VRF ids for VN ctest-vn-59724882: {}
2025-07-15 16:38:56,000 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-07-15 16:38:56,006 - DEBUG - Requesting: http://10.0.0.33:8082/domain/e8181d1a-4d6b-42cc-84bd-0cfac13513ed
2025-07-15 16:38:56,018 - DEBUG - Requesting: http://10.0.0.33:8082/project/12c560d6-fe31-4d2a-8b61-eb49886d1193
2025-07-15 16:38:56,092 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/3152217e-3130-4193-9879-df8909f78f1b
2025-07-15 16:38:56,104 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/3152217e-3130-4193-9879-df8909f78f1b
2025-07-15 16:38:56,113 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/5f6c0166-f588-471a-bd56-333946407154
2025-07-15 16:38:56,127 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/5f6c0166-f588-471a-bd56-333946407154
2025-07-15 16:38:56,134 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/5614e0a6-6962-4a64-88c5-b9b6efd668ca
2025-07-15 16:38:56,142 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-15 16:38:56,142 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/3152217e-3130-4193-9879-df8909f78f1b
2025-07-15 16:38:56,151 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/5f6c0166-f588-471a-bd56-333946407154
2025-07-15 16:38:56,172 - INFO - Verified VN network id 9 for VN 3152217e-3130-4193-9879-df8909f78f1b
2025-07-15 16:38:56,172 - INFO - Verifications in API Server for VN ctest-vn-91937895 passed
2025-07-15 16:38:56,173 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/3152217e-3130-4193-9879-df8909f78f1b
2025-07-15 16:38:56,184 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/5f6c0166-f588-471a-bd56-333946407154
2025-07-15 16:38:56,191 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/5f6c0166-f588-471a-bd56-333946407154
2025-07-15 16:38:56,199 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/5614e0a6-6962-4a64-88c5-b9b6efd668ca
2025-07-15 16:38:56,210 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-64880594:ctest-vn-91937895', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-64880594', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3553939881823584659', 'uuid-lslong': '10987058545617768219'}, 'enable': 'true', 'created': '2025-07-15T16:38:53', 'last-modified': '2025-07-15T16:38:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.416340'}
2025-07-15 16:38:56,216 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-15 16:38:56,216 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-91937895 passed
2025-07-15 16:38:56,216 - DEBUG - ====Verifying policy data for ctest-vn-91937895 in API_Server ======
2025-07-15 16:38:56,216 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-07-15 16:38:56,222 - DEBUG - Requesting: http://10.0.0.33:8082/domain/e8181d1a-4d6b-42cc-84bd-0cfac13513ed
2025-07-15 16:38:56,237 - DEBUG - Requesting: http://10.0.0.33:8082/project/12c560d6-fe31-4d2a-8b61-eb49886d1193
2025-07-15 16:38:56,308 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/3152217e-3130-4193-9879-df8909f78f1b
2025-07-15 16:38:56,317 - DEBUG - ==>Verifying data for policy with id: de0dcc5e-8a2b-43c4-890e-2493bf09b37e, fqn: ['default-domain', 'ctest-TestBasicPolicy-64880594', 'ctest-policy-allow-all-37131285']
2025-07-15 16:38:56,318 - INFO - VN ctest-vn-91937895 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-15 16:38:56,318 - DEBUG - Verifying the vn in opserver
2025-07-15 16:38:56,318 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-64880594:ctest-vn-91937895 virtual network link through opserver 10.0.0.33
2025-07-15 16:38:56,318 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-07-15 16:38:56,328 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-64880594:ctest-vn-91937895', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-64880594:ctest-vn-91937895?flat'}
2025-07-15 16:38:56,328 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-64880594:ctest-vn-91937895 is found in opserver
2025-07-15 16:38:56,339 - DEBUG - Do not have enough data to verify VN in agent
2025-07-15 16:38:56,344 - DEBUG - VRF ids for VN ctest-vn-91937895: {}
2025-07-15 16:38:56,405 - DEBUG - Services list from nova: [