2025-01-09 09:16:38,370 - INFO - Domain Default found not creating
2025-01-09 09:16:38,527 - INFO - Project ctest-TestBasicPolicy-54034346 not found, creating it
2025-01-09 09:16:39,013 - INFO - Created Project:ctest-TestBasicPolicy-54034346, ID : 36945906-f1bc-4bb0-a057-01bb4b688309
2025-01-09 09:16:40,538 - INFO - ================================================================================
2025-01-09 09:16:40,539 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-01-09 09:16:40,539 - 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-09 09:16:40,805 - DEBUG - Nothing to compare xmpp stats {'10.0.0.46': {'10.20.0.11': '0'}} with
2025-01-09 09:16:40,805 - INFO - Initial checks done. Running the testcase now
2025-01-09 09:16:40,805 - INFO -
2025-01-09 09:16:41,354 - DEBUG - Response for create_network : {'network': {'id': '7d8faa61-6bc7-4ef7-8f80-fc6824fae8d7', 'name': 'ctest-vn-97434711', 'tenant_id': '36945906f1bc4bb0a05701bb4b688309', 'project_id': '36945906f1bc4bb0a05701bb4b688309', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54034346', 'ctest-vn-97434711'], 'port_security_enabled': True, 'description': ''}}
2025-01-09 09:16:41,524 - DEBUG - Response for create_subnet : {'subnet': {'id': '524a840f-64bb-482e-a93b-f2af37e707e8', 'name': '', 'tenant_id': '36945906f1bc4bb0a05701bb4b688309', 'network_id': '7d8faa61-6bc7-4ef7-8f80-fc6824fae8d7', 'ip_version': 4, 'cidr': '136.88.155.192/26', 'allocation_pools': [{'start': '136.88.155.194', 'end': '136.88.155.254'}], 'gateway_ip': '136.88.155.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '136.88.155.194', 'tags': [], 'project_id': '36945906f1bc4bb0a05701bb4b688309'}}
2025-01-09 09:16:41,545 - INFO - Created VN ctest-vn-97434711
2025-01-09 09:16:41,597 - DEBUG - VN ctest-vn-97434711 UUID is 7d8faa61-6bc7-4ef7-8f80-fc6824fae8d7
2025-01-09 09:16:41,929 - DEBUG - Response for create_network : {'network': {'id': '37b569da-351c-4bca-97f9-63d1292bcd30', 'name': 'ctest-vn-86680360', 'tenant_id': '36945906f1bc4bb0a05701bb4b688309', 'project_id': '36945906f1bc4bb0a05701bb4b688309', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54034346', 'ctest-vn-86680360'], 'port_security_enabled': True, 'description': ''}}
2025-01-09 09:16:42,090 - DEBUG - Response for create_subnet : {'subnet': {'id': '17aaa4e8-2e04-415c-980d-037ce93cc89a', 'name': '', 'tenant_id': '36945906f1bc4bb0a05701bb4b688309', 'network_id': '37b569da-351c-4bca-97f9-63d1292bcd30', 'ip_version': 4, 'cidr': '144.59.162.64/26', 'allocation_pools': [{'start': '144.59.162.66', 'end': '144.59.162.126'}], 'gateway_ip': '144.59.162.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '144.59.162.66', 'tags': [], 'project_id': '36945906f1bc4bb0a05701bb4b688309'}}
2025-01-09 09:16:42,111 - INFO - Created VN ctest-vn-86680360
2025-01-09 09:16:42,164 - DEBUG - VN ctest-vn-86680360 UUID is 37b569da-351c-4bca-97f9-63d1292bcd30
2025-01-09 09:16:42,281 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-54034346:ctest-vn-97434711, 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-54034346:ctest-vn-86680360, 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-09 09:16:42,596 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7d8faa61-6bc7-4ef7-8f80-fc6824fae8d7', 'name': 'ctest-vn-97434711', 'tenant_id': '36945906f1bc4bb0a05701bb4b688309', 'project_id': '36945906f1bc4bb0a05701bb4b688309', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['524a840f-64bb-482e-a93b-f2af37e707e8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54034346', 'ctest-vn-97434711'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-54034346', 'ctest-policy-allow-all-81745602']], 'subnet_ipam': [{'subnet_cidr': '136.88.155.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-09 09:16:42,840 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '37b569da-351c-4bca-97f9-63d1292bcd30', 'name': 'ctest-vn-86680360', 'tenant_id': '36945906f1bc4bb0a05701bb4b688309', 'project_id': '36945906f1bc4bb0a05701bb4b688309', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['17aaa4e8-2e04-415c-980d-037ce93cc89a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54034346', 'ctest-vn-86680360'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-54034346', 'ctest-policy-allow-all-81745602']], 'subnet_ipam': [{'subnet_cidr': '144.59.162.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-09 09:16:43,012 - DEBUG - Requesting: http://10.0.0.46:8082/domains
2025-01-09 09:16:43,313 - DEBUG - Requesting: http://10.0.0.46:8082/domains
2025-01-09 09:16:43,350 - DEBUG - Requesting: http://10.0.0.46:8082/domain/6a1ce73b-a7a3-4ddc-aeae-173b7ef29ed4
2025-01-09 09:16:43,365 - DEBUG - Requesting: http://10.0.0.46:8082/project/36945906-f1bc-4bb0-a057-01bb4b688309
2025-01-09 09:16:43,445 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/7d8faa61-6bc7-4ef7-8f80-fc6824fae8d7
2025-01-09 09:16:43,457 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/7d8faa61-6bc7-4ef7-8f80-fc6824fae8d7
2025-01-09 09:16:43,467 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/2c63feff-bbe9-4395-893d-3611e55ca644
2025-01-09 09:16:43,475 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/2c63feff-bbe9-4395-893d-3611e55ca644
2025-01-09 09:16:43,484 - DEBUG - Requesting: http://10.0.0.46:8082/route-target/099a05bb-56b7-49d9-8f07-5b0e9ba65b76
2025-01-09 09:16:43,492 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-09 09:16:43,492 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/7d8faa61-6bc7-4ef7-8f80-fc6824fae8d7
2025-01-09 09:16:43,503 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/2c63feff-bbe9-4395-893d-3611e55ca644
2025-01-09 09:16:43,518 - INFO - Verified VN network id 8 for VN 7d8faa61-6bc7-4ef7-8f80-fc6824fae8d7
2025-01-09 09:16:43,518 - INFO - Verifications in API Server for VN ctest-vn-97434711 passed
2025-01-09 09:16:43,518 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/7d8faa61-6bc7-4ef7-8f80-fc6824fae8d7
2025-01-09 09:16:43,530 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/2c63feff-bbe9-4395-893d-3611e55ca644
2025-01-09 09:16:43,538 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/2c63feff-bbe9-4395-893d-3611e55ca644
2025-01-09 09:16:43,545 - DEBUG - Requesting: http://10.0.0.46:8082/route-target/099a05bb-56b7-49d9-8f07-5b0e9ba65b76
2025-01-09 09:16:43,557 - DEBUG - Control-node 10.0.0.46 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-54034346:ctest-vn-97434711', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-54034346', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9047637511807389431', 'uuid-lslong': '10340542268669880535'}, 'enable': 'true', 'created': '2025-01-09T09:16:41', 'last-modified': '2025-01-09T09:16:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.986684'}
2025-01-09 09:16:43,564 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-09 09:16:43,564 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-97434711 passed
2025-01-09 09:16:43,564 - DEBUG - ====Verifying policy data for ctest-vn-97434711 in API_Server ======
2025-01-09 09:16:43,564 - DEBUG - Requesting: http://10.0.0.46:8082/domains
2025-01-09 09:16:43,570 - DEBUG - Requesting: http://10.0.0.46:8082/domain/6a1ce73b-a7a3-4ddc-aeae-173b7ef29ed4
2025-01-09 09:16:43,582 - DEBUG - Requesting: http://10.0.0.46:8082/project/36945906-f1bc-4bb0-a057-01bb4b688309
2025-01-09 09:16:43,656 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/7d8faa61-6bc7-4ef7-8f80-fc6824fae8d7
2025-01-09 09:16:43,669 - DEBUG - ==>Verifying data for policy with id: 5e6d5b76-935d-42cf-8aa7-fc3d673f6499, fqn: ['default-domain', 'ctest-TestBasicPolicy-54034346', 'ctest-policy-allow-all-81745602']
2025-01-09 09:16:43,669 - INFO - VN ctest-vn-97434711 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-09 09:16:43,669 - DEBUG - Verifying the vn in opserver
2025-01-09 09:16:43,669 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-54034346:ctest-vn-97434711 virtual network link through opserver 10.0.0.46
2025-01-09 09:16:43,669 - DEBUG - Requesting: http://10.0.0.46:8081/analytics/uves/virtual-networks
2025-01-09 09:16:43,963 - DEBUG - Requesting: http://10.0.0.46:8081/analytics/uves/virtual-networks
2025-01-09 09:16:44,024 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-54034346:ctest-vn-97434711', 'href': 'http://10.0.0.46:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-54034346:ctest-vn-97434711?flat'}
2025-01-09 09:16:44,024 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-54034346:ctest-vn-97434711 is found in opserver
2025-01-09 09:16:44,036 - DEBUG - Do not have enough data to verify VN in agent
2025-01-09 09:16:44,041 - DEBUG - VRF ids for VN ctest-vn-97434711: {}
2025-01-09 09:16:44,041 - DEBUG - Requesting: http://10.0.0.46:8082/domains
2025-01-09 09:16:44,047 - DEBUG - Requesting: http://10.0.0.46:8082/domain/6a1ce73b-a7a3-4ddc-aeae-173b7ef29ed4
2025-01-09 09:16:44,060 - DEBUG - Requesting: http://10.0.0.46:8082/project/36945906-f1bc-4bb0-a057-01bb4b688309
2025-01-09 09:16:44,134 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/37b569da-351c-4bca-97f9-63d1292bcd30
2025-01-09 09:16:44,147 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/37b569da-351c-4bca-97f9-63d1292bcd30
2025-01-09 09:16:44,160 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/c7b94314-04e7-4f87-9c12-2a3eb2d21aac
2025-01-09 09:16:44,171 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/c7b94314-04e7-4f87-9c12-2a3eb2d21aac
2025-01-09 09:16:44,181 - DEBUG - Requesting: http://10.0.0.46:8082/route-target/7bd9b037-877a-48be-9002-39cd5b74461a
2025-01-09 09:16:44,188 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-09 09:16:44,188 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/37b569da-351c-4bca-97f9-63d1292bcd30
2025-01-09 09:16:44,198 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/c7b94314-04e7-4f87-9c12-2a3eb2d21aac
2025-01-09 09:16:44,215 - INFO - Verified VN network id 9 for VN 37b569da-351c-4bca-97f9-63d1292bcd30
2025-01-09 09:16:44,216 - INFO - Verifications in API Server for VN ctest-vn-86680360 passed
2025-01-09 09:16:44,216 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/37b569da-351c-4bca-97f9-63d1292bcd30
2025-01-09 09:16:44,229 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/c7b94314-04e7-4f87-9c12-2a3eb2d21aac
2025-01-09 09:16:44,238 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/c7b94314-04e7-4f87-9c12-2a3eb2d21aac
2025-01-09 09:16:44,247 - DEBUG - Requesting: http://10.0.0.46:8082/route-target/7bd9b037-877a-48be-9002-39cd5b74461a
2025-01-09 09:16:44,263 - DEBUG - Control-node 10.0.0.46 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-54034346:ctest-vn-86680360', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-54034346', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4014231028785499082', 'uuid-lslong': '10950893718918122800'}, 'enable': 'true', 'created': '2025-01-09T09:16:41', 'last-modified': '2025-01-09T09:16:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.450412'}
2025-01-09 09:16:44,271 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-09 09:16:44,271 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-86680360 passed
2025-01-09 09:16:44,271 - DEBUG - ====Verifying policy data for ctest-vn-86680360 in API_Server ======
2025-01-09 09:16:44,271 - DEBUG - Requesting: http://10.0.0.46:8082/domains
2025-01-09 09:16:44,279 - DEBUG - Requesting: http://10.0.0.46:8082/domain/6a1ce73b-a7a3-4ddc-aeae-173b7ef29ed4
2025-01-09 09:16:44,292 - DEBUG - Requesting: http://10.0.0.46:8082/project/36945906-f1bc-4bb0-a057-01bb4b688309
2025-01-09 09:16:44,377 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/37b569da-351c-4bca-97f9-63d1292bcd30
2025-01-09 09:16:44,389 - DEBUG - ==>Verifying data for policy with id: 5e6d5b76-935d-42cf-8aa7-fc3d673f6499, fqn: ['default-domain', 'ctest-TestBasicPolicy-54034346', 'ctest-policy-allow-all-81745602']
2025-01-09 09:16:44,389 - INFO - VN ctest-vn-86680360 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-09 09:16:44,389 - DEBUG - Verifying the vn in opserver
2025-01-09 09:16:44,389 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-54034346:ctest-vn-86680360 virtual network link through opserver 10.0.0.46
2025-01-09 09:16:44,390 - DEBUG - Requesting: http://10.0.0.46:8081/analytics/uves/virtual-networks
2025-01-09 09:16:44,401 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-54034346:ctest-vn-86680360', 'href': 'http://10.0.0.46:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-54034346:ctest-vn-86680360?flat'}
2025-01-09 09:16:44,401 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-54034346:ctest-vn-86680360 is found in opserver
2025-01-09 09:16:44,412 - DEBUG - Do not have enough data to verify VN in agent
2025-01-09 09:16:44,418 - DEBUG - VRF ids for VN ctest-vn-86680360: {}
2025-01-09 09:16:44,489 - DEBUG - Services list from nova: [