2025-04-22 17:01:37,703 - INFO - Domain Default found not creating
2025-04-22 17:01:37,848 - INFO - Project ctest-TestBasicPolicy-04996032 not found, creating it
2025-04-22 17:01:38,309 - INFO - Created Project:ctest-TestBasicPolicy-04996032, ID : 469730b5-043c-4ba5-a906-5480be0cd897
2025-04-22 17:01:39,865 - INFO - ================================================================================
2025-04-22 17:01:39,866 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-22 17:01:39,866 - 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-04-22 17:01:40,119 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.17': '0'}} with
2025-04-22 17:01:40,119 - INFO - Initial checks done. Running the testcase now
2025-04-22 17:01:40,119 - INFO -
2025-04-22 17:01:40,716 - DEBUG - Response for create_network : {'network': {'id': 'd0fb3138-0f47-4cf7-9be5-86a331a970c6', 'name': 'ctest-vn-82299307', 'tenant_id': '469730b5043c4ba5a9065480be0cd897', 'project_id': '469730b5043c4ba5a9065480be0cd897', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04996032', 'ctest-vn-82299307'], 'port_security_enabled': True, 'description': ''}}
2025-04-22 17:01:40,922 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bf5e4e60-e1db-4113-ae62-246d8a3fe318', 'name': '', 'tenant_id': '469730b5043c4ba5a9065480be0cd897', 'network_id': 'd0fb3138-0f47-4cf7-9be5-86a331a970c6', 'ip_version': 4, 'cidr': '37.46.104.0/26', 'allocation_pools': [{'start': '37.46.104.2', 'end': '37.46.104.62'}], 'gateway_ip': '37.46.104.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '37.46.104.2', 'tags': [], 'project_id': '469730b5043c4ba5a9065480be0cd897'}}
2025-04-22 17:01:40,943 - INFO - Created VN ctest-vn-82299307
2025-04-22 17:01:40,997 - DEBUG - VN ctest-vn-82299307 UUID is d0fb3138-0f47-4cf7-9be5-86a331a970c6
2025-04-22 17:01:41,418 - DEBUG - Response for create_network : {'network': {'id': '70366ece-b621-4160-962f-9c57b251a77d', 'name': 'ctest-vn-85933169', 'tenant_id': '469730b5043c4ba5a9065480be0cd897', 'project_id': '469730b5043c4ba5a9065480be0cd897', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04996032', 'ctest-vn-85933169'], 'port_security_enabled': True, 'description': ''}}
2025-04-22 17:01:41,634 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e839fe0a-c25c-42e1-9ce9-e00933b0b2f1', 'name': '', 'tenant_id': '469730b5043c4ba5a9065480be0cd897', 'network_id': '70366ece-b621-4160-962f-9c57b251a77d', 'ip_version': 4, 'cidr': '113.54.124.192/26', 'allocation_pools': [{'start': '113.54.124.194', 'end': '113.54.124.254'}], 'gateway_ip': '113.54.124.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '113.54.124.194', 'tags': [], 'project_id': '469730b5043c4ba5a9065480be0cd897'}}
2025-04-22 17:01:41,652 - INFO - Created VN ctest-vn-85933169
2025-04-22 17:01:41,705 - DEBUG - VN ctest-vn-85933169 UUID is 70366ece-b621-4160-962f-9c57b251a77d
2025-04-22 17:01:41,828 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-04996032:ctest-vn-82299307, 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-04996032:ctest-vn-85933169, 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-04-22 17:01:42,157 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd0fb3138-0f47-4cf7-9be5-86a331a970c6', 'name': 'ctest-vn-82299307', 'tenant_id': '469730b5043c4ba5a9065480be0cd897', 'project_id': '469730b5043c4ba5a9065480be0cd897', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['bf5e4e60-e1db-4113-ae62-246d8a3fe318'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04996032', 'ctest-vn-82299307'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-04996032', 'ctest-policy-allow-all-95739147']], 'subnet_ipam': [{'subnet_cidr': '37.46.104.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-22 17:01:42,434 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '70366ece-b621-4160-962f-9c57b251a77d', 'name': 'ctest-vn-85933169', 'tenant_id': '469730b5043c4ba5a9065480be0cd897', 'project_id': '469730b5043c4ba5a9065480be0cd897', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e839fe0a-c25c-42e1-9ce9-e00933b0b2f1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04996032', 'ctest-vn-85933169'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-04996032', 'ctest-policy-allow-all-95739147']], 'subnet_ipam': [{'subnet_cidr': '113.54.124.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-22 17:01:42,585 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-04-22 17:01:42,921 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-04-22 17:01:42,949 - DEBUG - Requesting: http://10.0.0.41:8082/domain/ce874d21-acd5-4073-b105-564fb930a5a9
2025-04-22 17:01:42,964 - DEBUG - Requesting: http://10.0.0.41:8082/project/469730b5-043c-4ba5-a906-5480be0cd897
2025-04-22 17:01:43,050 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/d0fb3138-0f47-4cf7-9be5-86a331a970c6
2025-04-22 17:01:43,063 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/d0fb3138-0f47-4cf7-9be5-86a331a970c6
2025-04-22 17:01:43,075 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/1eb3c2c5-0e39-4e66-bc84-149c788e185d
2025-04-22 17:01:43,085 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/1eb3c2c5-0e39-4e66-bc84-149c788e185d
2025-04-22 17:01:43,092 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/d8fae55c-750a-4f63-a9a4-26b54bd95392
2025-04-22 17:01:43,100 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-22 17:01:43,100 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/d0fb3138-0f47-4cf7-9be5-86a331a970c6
2025-04-22 17:01:43,110 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/1eb3c2c5-0e39-4e66-bc84-149c788e185d
2025-04-22 17:01:43,125 - INFO - Verified VN network id 8 for VN d0fb3138-0f47-4cf7-9be5-86a331a970c6
2025-04-22 17:01:43,125 - INFO - Verifications in API Server for VN ctest-vn-82299307 passed
2025-04-22 17:01:43,125 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/d0fb3138-0f47-4cf7-9be5-86a331a970c6
2025-04-22 17:01:43,135 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/1eb3c2c5-0e39-4e66-bc84-149c788e185d
2025-04-22 17:01:43,143 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/1eb3c2c5-0e39-4e66-bc84-149c788e185d
2025-04-22 17:01:43,151 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/d8fae55c-750a-4f63-a9a4-26b54bd95392
2025-04-22 17:01:43,164 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-04996032:ctest-vn-82299307', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-04996032', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15058683895887645943', 'uuid-lslong': '11233532881016549574'}, 'enable': 'true', 'created': '2025-04-22T17:01:40', 'last-modified': '2025-04-22T17:01:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.043097'}
2025-04-22 17:01:43,171 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-22 17:01:43,171 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-82299307 passed
2025-04-22 17:01:43,171 - DEBUG - ====Verifying policy data for ctest-vn-82299307 in API_Server ======
2025-04-22 17:01:43,171 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-04-22 17:01:43,177 - DEBUG - Requesting: http://10.0.0.41:8082/domain/ce874d21-acd5-4073-b105-564fb930a5a9
2025-04-22 17:01:43,190 - DEBUG - Requesting: http://10.0.0.41:8082/project/469730b5-043c-4ba5-a906-5480be0cd897
2025-04-22 17:01:43,263 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/d0fb3138-0f47-4cf7-9be5-86a331a970c6
2025-04-22 17:01:43,274 - DEBUG - ==>Verifying data for policy with id: f6267af9-38c8-4af5-ab48-2fcdf99ff1e0, fqn: ['default-domain', 'ctest-TestBasicPolicy-04996032', 'ctest-policy-allow-all-95739147']
2025-04-22 17:01:43,274 - INFO - VN ctest-vn-82299307 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-22 17:01:43,274 - DEBUG - Verifying the vn in opserver
2025-04-22 17:01:43,274 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-04996032:ctest-vn-82299307 virtual network link through opserver 10.0.0.41
2025-04-22 17:01:43,274 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2025-04-22 17:01:43,622 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2025-04-22 17:01:43,676 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-04996032:ctest-vn-82299307', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-04996032:ctest-vn-82299307?flat'}
2025-04-22 17:01:43,676 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-04996032:ctest-vn-82299307 is found in opserver
2025-04-22 17:01:43,687 - DEBUG - Do not have enough data to verify VN in agent
2025-04-22 17:01:43,693 - DEBUG - VRF ids for VN ctest-vn-82299307: {}
2025-04-22 17:01:43,693 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-04-22 17:01:43,700 - DEBUG - Requesting: http://10.0.0.41:8082/domain/ce874d21-acd5-4073-b105-564fb930a5a9
2025-04-22 17:01:43,712 - DEBUG - Requesting: http://10.0.0.41:8082/project/469730b5-043c-4ba5-a906-5480be0cd897
2025-04-22 17:01:43,786 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/70366ece-b621-4160-962f-9c57b251a77d
2025-04-22 17:01:43,800 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/70366ece-b621-4160-962f-9c57b251a77d
2025-04-22 17:01:43,810 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/f37b19e9-6e84-4e4e-a3b6-24a84ad6939f
2025-04-22 17:01:43,817 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/f37b19e9-6e84-4e4e-a3b6-24a84ad6939f
2025-04-22 17:01:43,824 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/46bde978-c322-4922-ad0c-6e134f76198f
2025-04-22 17:01:43,830 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-22 17:01:43,830 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/70366ece-b621-4160-962f-9c57b251a77d
2025-04-22 17:01:43,840 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/f37b19e9-6e84-4e4e-a3b6-24a84ad6939f
2025-04-22 17:01:43,854 - INFO - Verified VN network id 9 for VN 70366ece-b621-4160-962f-9c57b251a77d
2025-04-22 17:01:43,854 - INFO - Verifications in API Server for VN ctest-vn-85933169 passed
2025-04-22 17:01:43,854 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/70366ece-b621-4160-962f-9c57b251a77d
2025-04-22 17:01:43,864 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/f37b19e9-6e84-4e4e-a3b6-24a84ad6939f
2025-04-22 17:01:43,872 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/f37b19e9-6e84-4e4e-a3b6-24a84ad6939f
2025-04-22 17:01:43,880 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/46bde978-c322-4922-ad0c-6e134f76198f
2025-04-22 17:01:43,894 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-04996032:ctest-vn-85933169', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-04996032', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8085772015088255328', 'uuid-lslong': '10822040330062374781'}, 'enable': 'true', 'created': '2025-04-22T17:01:41', 'last-modified': '2025-04-22T17:01:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.528538'}
2025-04-22 17:01:43,900 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-22 17:01:43,900 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-85933169 passed
2025-04-22 17:01:43,901 - DEBUG - ====Verifying policy data for ctest-vn-85933169 in API_Server ======
2025-04-22 17:01:43,901 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-04-22 17:01:43,907 - DEBUG - Requesting: http://10.0.0.41:8082/domain/ce874d21-acd5-4073-b105-564fb930a5a9
2025-04-22 17:01:43,922 - DEBUG - Requesting: http://10.0.0.41:8082/project/469730b5-043c-4ba5-a906-5480be0cd897
2025-04-22 17:01:44,000 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/70366ece-b621-4160-962f-9c57b251a77d
2025-04-22 17:01:44,011 - DEBUG - ==>Verifying data for policy with id: f6267af9-38c8-4af5-ab48-2fcdf99ff1e0, fqn: ['default-domain', 'ctest-TestBasicPolicy-04996032', 'ctest-policy-allow-all-95739147']
2025-04-22 17:01:44,011 - INFO - VN ctest-vn-85933169 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-22 17:01:44,011 - DEBUG - Verifying the vn in opserver
2025-04-22 17:01:44,011 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-04996032:ctest-vn-85933169 virtual network link through opserver 10.0.0.41
2025-04-22 17:01:44,011 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2025-04-22 17:01:44,022 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-04996032:ctest-vn-85933169', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-04996032:ctest-vn-85933169?flat'}
2025-04-22 17:01:44,022 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-04996032:ctest-vn-85933169 is found in opserver
2025-04-22 17:01:44,033 - DEBUG - Do not have enough data to verify VN in agent
2025-04-22 17:01:44,039 - DEBUG - VRF ids for VN ctest-vn-85933169: {}
2025-04-22 17:01:44,099 - DEBUG - Services list from nova: [