2025-01-14 20:42:19,291 - INFO - Domain Default found not creating
2025-01-14 20:42:19,438 - INFO - Project ctest-TestBasicPolicy-19830342 not found, creating it
2025-01-14 20:42:19,885 - INFO - Created Project:ctest-TestBasicPolicy-19830342, ID : 63064377-5460-4e6b-bbc2-a2bc54285848
2025-01-14 20:42:21,336 - INFO - ================================================================================
2025-01-14 20:42:21,337 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-01-14 20:42:21,337 - 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-01-14 20:42:21,594 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.7': '0'}} with
2025-01-14 20:42:21,594 - INFO - Initial checks done. Running the testcase now
2025-01-14 20:42:21,594 - INFO -
2025-01-14 20:42:22,161 - DEBUG - Response for create_network : {'network': {'id': 'b8b7cf16-f570-4c07-bfcf-b613d8a84959', 'name': 'ctest-vn-19390210', 'tenant_id': '6306437754604e6bbbc2a2bc54285848', 'project_id': '6306437754604e6bbbc2a2bc54285848', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-19830342', 'ctest-vn-19390210'], 'port_security_enabled': True, 'description': ''}}
2025-01-14 20:42:22,348 - DEBUG - Response for create_subnet : {'subnet': {'id': '31a9a33e-cba0-4e83-af58-dd3bb3ac0697', 'name': '', 'tenant_id': '6306437754604e6bbbc2a2bc54285848', 'network_id': 'b8b7cf16-f570-4c07-bfcf-b613d8a84959', 'ip_version': 4, 'cidr': '91.138.116.0/26', 'allocation_pools': [{'start': '91.138.116.2', 'end': '91.138.116.62'}], 'gateway_ip': '91.138.116.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '91.138.116.2', 'tags': [], 'project_id': '6306437754604e6bbbc2a2bc54285848'}}
2025-01-14 20:42:22,366 - INFO - Created VN ctest-vn-19390210
2025-01-14 20:42:22,419 - DEBUG - VN ctest-vn-19390210 UUID is b8b7cf16-f570-4c07-bfcf-b613d8a84959
2025-01-14 20:42:22,711 - DEBUG - Response for create_network : {'network': {'id': '2af106f2-b96c-4144-860c-3cf0838a843c', 'name': 'ctest-vn-27125280', 'tenant_id': '6306437754604e6bbbc2a2bc54285848', 'project_id': '6306437754604e6bbbc2a2bc54285848', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-19830342', 'ctest-vn-27125280'], 'port_security_enabled': True, 'description': ''}}
2025-01-14 20:42:22,863 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fc929ba0-f350-4665-836d-4d468bdfa6ed', 'name': '', 'tenant_id': '6306437754604e6bbbc2a2bc54285848', 'network_id': '2af106f2-b96c-4144-860c-3cf0838a843c', 'ip_version': 4, 'cidr': '62.141.139.128/26', 'allocation_pools': [{'start': '62.141.139.130', 'end': '62.141.139.190'}], 'gateway_ip': '62.141.139.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '62.141.139.130', 'tags': [], 'project_id': '6306437754604e6bbbc2a2bc54285848'}}
2025-01-14 20:42:22,881 - INFO - Created VN ctest-vn-27125280
2025-01-14 20:42:22,935 - DEBUG - VN ctest-vn-27125280 UUID is 2af106f2-b96c-4144-860c-3cf0838a843c
2025-01-14 20:42:23,087 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-19830342:ctest-vn-19390210, 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-19830342:ctest-vn-27125280, 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-01-14 20:42:23,411 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b8b7cf16-f570-4c07-bfcf-b613d8a84959', 'name': 'ctest-vn-19390210', 'tenant_id': '6306437754604e6bbbc2a2bc54285848', 'project_id': '6306437754604e6bbbc2a2bc54285848', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['31a9a33e-cba0-4e83-af58-dd3bb3ac0697'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-19830342', 'ctest-vn-19390210'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-19830342', 'ctest-policy-allow-all-24309732']], 'subnet_ipam': [{'subnet_cidr': '91.138.116.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-14 20:42:23,802 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2af106f2-b96c-4144-860c-3cf0838a843c', 'name': 'ctest-vn-27125280', 'tenant_id': '6306437754604e6bbbc2a2bc54285848', 'project_id': '6306437754604e6bbbc2a2bc54285848', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['fc929ba0-f350-4665-836d-4d468bdfa6ed'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-19830342', 'ctest-vn-27125280'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-19830342', 'ctest-policy-allow-all-24309732']], 'subnet_ipam': [{'subnet_cidr': '62.141.139.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-14 20:42:23,967 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-01-14 20:42:24,271 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-01-14 20:42:24,304 - DEBUG - Requesting: http://10.0.0.22:8082/domain/9836fa3e-3e84-43b3-808d-7119415494f6
2025-01-14 20:42:24,319 - DEBUG - Requesting: http://10.0.0.22:8082/project/63064377-5460-4e6b-bbc2-a2bc54285848
2025-01-14 20:42:24,391 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/b8b7cf16-f570-4c07-bfcf-b613d8a84959
2025-01-14 20:42:24,404 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/b8b7cf16-f570-4c07-bfcf-b613d8a84959
2025-01-14 20:42:24,416 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0f3ebf71-88cf-41e1-94f8-49f1ddd0f6df
2025-01-14 20:42:24,426 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0f3ebf71-88cf-41e1-94f8-49f1ddd0f6df
2025-01-14 20:42:24,435 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/8e046382-4b4e-4778-88a0-e644523786bc
2025-01-14 20:42:24,444 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-14 20:42:24,444 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/b8b7cf16-f570-4c07-bfcf-b613d8a84959
2025-01-14 20:42:24,454 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0f3ebf71-88cf-41e1-94f8-49f1ddd0f6df
2025-01-14 20:42:24,469 - INFO - Verified VN network id 7 for VN b8b7cf16-f570-4c07-bfcf-b613d8a84959
2025-01-14 20:42:24,469 - INFO - Verifications in API Server for VN ctest-vn-19390210 passed
2025-01-14 20:42:24,470 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/b8b7cf16-f570-4c07-bfcf-b613d8a84959
2025-01-14 20:42:24,480 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0f3ebf71-88cf-41e1-94f8-49f1ddd0f6df
2025-01-14 20:42:24,488 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0f3ebf71-88cf-41e1-94f8-49f1ddd0f6df
2025-01-14 20:42:24,495 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/8e046382-4b4e-4778-88a0-e644523786bc
2025-01-14 20:42:24,510 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-19830342:ctest-vn-19390210', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-19830342', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13310334921230797831', 'uuid-lslong': '13821465977778882905'}, 'enable': 'true', 'created': '2025-01-14T20:42:22', 'last-modified': '2025-01-14T20:42:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.126685'}
2025-01-14 20:42:24,517 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-14 20:42:24,517 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-19390210 passed
2025-01-14 20:42:24,517 - DEBUG - ====Verifying policy data for ctest-vn-19390210 in API_Server ======
2025-01-14 20:42:24,517 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-01-14 20:42:24,523 - DEBUG - Requesting: http://10.0.0.22:8082/domain/9836fa3e-3e84-43b3-808d-7119415494f6
2025-01-14 20:42:24,538 - DEBUG - Requesting: http://10.0.0.22:8082/project/63064377-5460-4e6b-bbc2-a2bc54285848
2025-01-14 20:42:24,621 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/b8b7cf16-f570-4c07-bfcf-b613d8a84959
2025-01-14 20:42:24,631 - DEBUG - ==>Verifying data for policy with id: b112a7fd-5480-4c6d-b36d-c4dddf3ff5ba, fqn: ['default-domain', 'ctest-TestBasicPolicy-19830342', 'ctest-policy-allow-all-24309732']
2025-01-14 20:42:24,632 - INFO - VN ctest-vn-19390210 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-14 20:42:24,632 - DEBUG - Verifying the vn in opserver
2025-01-14 20:42:24,632 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-19830342:ctest-vn-19390210 virtual network link through opserver 10.0.0.22
2025-01-14 20:42:24,632 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-01-14 20:42:24,926 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-01-14 20:42:24,983 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-19830342:ctest-vn-19390210', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-19830342:ctest-vn-19390210?flat'}
2025-01-14 20:42:24,983 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-19830342:ctest-vn-19390210 is found in opserver
2025-01-14 20:42:24,994 - DEBUG - Do not have enough data to verify VN in agent
2025-01-14 20:42:25,000 - DEBUG - VRF ids for VN ctest-vn-19390210: {}
2025-01-14 20:42:25,000 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-01-14 20:42:25,005 - DEBUG - Requesting: http://10.0.0.22:8082/domain/9836fa3e-3e84-43b3-808d-7119415494f6
2025-01-14 20:42:25,019 - DEBUG - Requesting: http://10.0.0.22:8082/project/63064377-5460-4e6b-bbc2-a2bc54285848
2025-01-14 20:42:25,095 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/2af106f2-b96c-4144-860c-3cf0838a843c
2025-01-14 20:42:25,110 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/2af106f2-b96c-4144-860c-3cf0838a843c
2025-01-14 20:42:25,120 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0a7adb42-c30b-44b8-9e32-e5c1d4bf9b1b
2025-01-14 20:42:25,129 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0a7adb42-c30b-44b8-9e32-e5c1d4bf9b1b
2025-01-14 20:42:25,137 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/b4ca3a74-8e1f-4403-8fd7-0c5d93d53029
2025-01-14 20:42:25,144 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-14 20:42:25,144 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/2af106f2-b96c-4144-860c-3cf0838a843c
2025-01-14 20:42:25,155 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0a7adb42-c30b-44b8-9e32-e5c1d4bf9b1b
2025-01-14 20:42:25,171 - INFO - Verified VN network id 8 for VN 2af106f2-b96c-4144-860c-3cf0838a843c
2025-01-14 20:42:25,171 - INFO - Verifications in API Server for VN ctest-vn-27125280 passed
2025-01-14 20:42:25,171 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/2af106f2-b96c-4144-860c-3cf0838a843c
2025-01-14 20:42:25,183 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0a7adb42-c30b-44b8-9e32-e5c1d4bf9b1b
2025-01-14 20:42:25,191 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0a7adb42-c30b-44b8-9e32-e5c1d4bf9b1b
2025-01-14 20:42:25,199 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/b4ca3a74-8e1f-4403-8fd7-0c5d93d53029
2025-01-14 20:42:25,213 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-19830342:ctest-vn-27125280', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-19830342', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3094262058542973252', 'uuid-lslong': '9659162304499582012'}, 'enable': 'true', 'created': '2025-01-14T20:42:22', 'last-modified': '2025-01-14T20:42:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.429314'}
2025-01-14 20:42:25,222 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-14 20:42:25,222 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-27125280 passed
2025-01-14 20:42:25,223 - DEBUG - ====Verifying policy data for ctest-vn-27125280 in API_Server ======
2025-01-14 20:42:25,223 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-01-14 20:42:25,230 - DEBUG - Requesting: http://10.0.0.22:8082/domain/9836fa3e-3e84-43b3-808d-7119415494f6
2025-01-14 20:42:25,242 - DEBUG - Requesting: http://10.0.0.22:8082/project/63064377-5460-4e6b-bbc2-a2bc54285848
2025-01-14 20:42:25,318 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/2af106f2-b96c-4144-860c-3cf0838a843c
2025-01-14 20:42:25,333 - DEBUG - ==>Verifying data for policy with id: b112a7fd-5480-4c6d-b36d-c4dddf3ff5ba, fqn: ['default-domain', 'ctest-TestBasicPolicy-19830342', 'ctest-policy-allow-all-24309732']
2025-01-14 20:42:25,333 - INFO - VN ctest-vn-27125280 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-14 20:42:25,333 - DEBUG - Verifying the vn in opserver
2025-01-14 20:42:25,333 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-19830342:ctest-vn-27125280 virtual network link through opserver 10.0.0.22
2025-01-14 20:42:25,333 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-01-14 20:42:25,348 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-19830342:ctest-vn-27125280', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-19830342:ctest-vn-27125280?flat'}
2025-01-14 20:42:25,348 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-19830342:ctest-vn-27125280 is found in opserver
2025-01-14 20:42:25,363 - DEBUG - Do not have enough data to verify VN in agent
2025-01-14 20:42:25,369 - DEBUG - VRF ids for VN ctest-vn-27125280: {}
2025-01-14 20:42:25,437 - DEBUG - Services list from nova: [