2025-02-04 21:34:54,408 - INFO - Domain Default found not creating
2025-02-04 21:34:54,605 - INFO - Project ctest-TestBasicPolicy-79233957 not found, creating it
2025-02-04 21:34:55,114 - INFO - Created Project:ctest-TestBasicPolicy-79233957, ID : da6b778f-817c-4196-8d11-1edf67a6db9a
2025-02-04 21:34:56,726 - INFO - ================================================================================
2025-02-04 21:34:56,726 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-02-04 21:34:56,726 - 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-02-04 21:34:57,004 - DEBUG - Nothing to compare xmpp stats {'10.0.0.17': {'10.20.0.5': '0'}} with
2025-02-04 21:34:57,004 - INFO - Initial checks done. Running the testcase now
2025-02-04 21:34:57,004 - INFO -
2025-02-04 21:34:57,621 - DEBUG - Response for create_network : {'network': {'id': 'bdecb9dc-0226-4919-8a81-bcef3301776c', 'name': 'ctest-vn-65612592', 'tenant_id': 'da6b778f817c41968d111edf67a6db9a', 'project_id': 'da6b778f817c41968d111edf67a6db9a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-79233957', 'ctest-vn-65612592'], 'port_security_enabled': True, 'description': ''}}
2025-02-04 21:34:57,803 - DEBUG - Response for create_subnet : {'subnet': {'id': '876520d2-b72c-428c-93e5-c09ced01094f', 'name': '', 'tenant_id': 'da6b778f817c41968d111edf67a6db9a', 'network_id': 'bdecb9dc-0226-4919-8a81-bcef3301776c', 'ip_version': 4, 'cidr': '157.62.102.0/26', 'allocation_pools': [{'start': '157.62.102.2', 'end': '157.62.102.62'}], 'gateway_ip': '157.62.102.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '157.62.102.2', 'tags': [], 'project_id': 'da6b778f817c41968d111edf67a6db9a'}}
2025-02-04 21:34:57,827 - INFO - Created VN ctest-vn-65612592
2025-02-04 21:34:57,880 - DEBUG - VN ctest-vn-65612592 UUID is bdecb9dc-0226-4919-8a81-bcef3301776c
2025-02-04 21:34:58,224 - DEBUG - Response for create_network : {'network': {'id': 'd33a7ae1-7334-4a4d-859f-3dd72e0d90b2', 'name': 'ctest-vn-67363657', 'tenant_id': 'da6b778f817c41968d111edf67a6db9a', 'project_id': 'da6b778f817c41968d111edf67a6db9a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-79233957', 'ctest-vn-67363657'], 'port_security_enabled': True, 'description': ''}}
2025-02-04 21:34:58,430 - DEBUG - Response for create_subnet : {'subnet': {'id': '0f47fc16-fbba-4f0f-9456-7ff1a02b1378', 'name': '', 'tenant_id': 'da6b778f817c41968d111edf67a6db9a', 'network_id': 'd33a7ae1-7334-4a4d-859f-3dd72e0d90b2', 'ip_version': 4, 'cidr': '49.175.27.128/26', 'allocation_pools': [{'start': '49.175.27.130', 'end': '49.175.27.190'}], 'gateway_ip': '49.175.27.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '49.175.27.130', 'tags': [], 'project_id': 'da6b778f817c41968d111edf67a6db9a'}}
2025-02-04 21:34:58,450 - INFO - Created VN ctest-vn-67363657
2025-02-04 21:34:58,504 - DEBUG - VN ctest-vn-67363657 UUID is d33a7ae1-7334-4a4d-859f-3dd72e0d90b2
2025-02-04 21:34:58,643 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-79233957:ctest-vn-65612592, 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-79233957:ctest-vn-67363657, 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-02-04 21:34:58,983 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'bdecb9dc-0226-4919-8a81-bcef3301776c', 'name': 'ctest-vn-65612592', 'tenant_id': 'da6b778f817c41968d111edf67a6db9a', 'project_id': 'da6b778f817c41968d111edf67a6db9a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['876520d2-b72c-428c-93e5-c09ced01094f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-79233957', 'ctest-vn-65612592'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-79233957', 'ctest-policy-allow-all-70498599']], 'subnet_ipam': [{'subnet_cidr': '157.62.102.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-02-04 21:34:59,241 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd33a7ae1-7334-4a4d-859f-3dd72e0d90b2', 'name': 'ctest-vn-67363657', 'tenant_id': 'da6b778f817c41968d111edf67a6db9a', 'project_id': 'da6b778f817c41968d111edf67a6db9a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0f47fc16-fbba-4f0f-9456-7ff1a02b1378'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-79233957', 'ctest-vn-67363657'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-79233957', 'ctest-policy-allow-all-70498599']], 'subnet_ipam': [{'subnet_cidr': '49.175.27.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-02-04 21:34:59,400 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2025-02-04 21:34:59,714 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2025-02-04 21:34:59,748 - DEBUG - Requesting: http://10.0.0.17:8082/domain/809c5091-19bf-4392-8173-730f899e9ebb
2025-02-04 21:34:59,763 - DEBUG - Requesting: http://10.0.0.17:8082/project/da6b778f-817c-4196-8d11-1edf67a6db9a
2025-02-04 21:34:59,841 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/bdecb9dc-0226-4919-8a81-bcef3301776c
2025-02-04 21:34:59,852 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/bdecb9dc-0226-4919-8a81-bcef3301776c
2025-02-04 21:34:59,863 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/d97be5fe-b6a0-4d5a-9621-7e7faa7c5c42
2025-02-04 21:34:59,871 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/d97be5fe-b6a0-4d5a-9621-7e7faa7c5c42
2025-02-04 21:34:59,879 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/81bdef06-e184-447b-9dc0-b336feafb7f9
2025-02-04 21:34:59,888 - DEBUG - Route Targets: ['target:64512:8000005']
2025-02-04 21:34:59,888 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/bdecb9dc-0226-4919-8a81-bcef3301776c
2025-02-04 21:34:59,897 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/d97be5fe-b6a0-4d5a-9621-7e7faa7c5c42
2025-02-04 21:34:59,915 - INFO - Verified VN network id 8 for VN bdecb9dc-0226-4919-8a81-bcef3301776c
2025-02-04 21:34:59,915 - INFO - Verifications in API Server for VN ctest-vn-65612592 passed
2025-02-04 21:34:59,915 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/bdecb9dc-0226-4919-8a81-bcef3301776c
2025-02-04 21:34:59,925 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/d97be5fe-b6a0-4d5a-9621-7e7faa7c5c42
2025-02-04 21:34:59,934 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/d97be5fe-b6a0-4d5a-9621-7e7faa7c5c42
2025-02-04 21:34:59,944 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/81bdef06-e184-447b-9dc0-b336feafb7f9
2025-02-04 21:34:59,962 - DEBUG - Control-node 10.0.0.17 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-79233957:ctest-vn-65612592', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-79233957', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13685517722252101913', 'uuid-lslong': '9980465984768669548'}, 'enable': 'true', 'created': '2025-02-04T21:34:57', 'last-modified': '2025-02-04T21:34:58', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.005932'}
2025-02-04 21:34:59,971 - DEBUG - Route Targets: ['target:64512:8000005']
2025-02-04 21:34:59,972 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-65612592 passed
2025-02-04 21:34:59,972 - DEBUG - ====Verifying policy data for ctest-vn-65612592 in API_Server ======
2025-02-04 21:34:59,972 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2025-02-04 21:34:59,980 - DEBUG - Requesting: http://10.0.0.17:8082/domain/809c5091-19bf-4392-8173-730f899e9ebb
2025-02-04 21:34:59,994 - DEBUG - Requesting: http://10.0.0.17:8082/project/da6b778f-817c-4196-8d11-1edf67a6db9a
2025-02-04 21:35:00,067 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/bdecb9dc-0226-4919-8a81-bcef3301776c
2025-02-04 21:35:00,078 - DEBUG - ==>Verifying data for policy with id: cf4170c6-4cfc-45bd-8e76-14c92ce08256, fqn: ['default-domain', 'ctest-TestBasicPolicy-79233957', 'ctest-policy-allow-all-70498599']
2025-02-04 21:35:00,078 - INFO - VN ctest-vn-65612592 Policy verification: verify_vn_policy_in_api_server, status: True
2025-02-04 21:35:00,078 - DEBUG - Verifying the vn in opserver
2025-02-04 21:35:00,078 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-79233957:ctest-vn-65612592 virtual network link through opserver 10.0.0.17
2025-02-04 21:35:00,078 - DEBUG - Requesting: http://10.0.0.17:8081/analytics/uves/virtual-networks
2025-02-04 21:35:00,390 - DEBUG - Requesting: http://10.0.0.17:8081/analytics/uves/virtual-networks
2025-02-04 21:35:00,467 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-79233957:ctest-vn-65612592', 'href': 'http://10.0.0.17:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-79233957:ctest-vn-65612592?flat'}
2025-02-04 21:35:00,467 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-79233957:ctest-vn-65612592 is found in opserver
2025-02-04 21:35:00,480 - DEBUG - Do not have enough data to verify VN in agent
2025-02-04 21:35:00,487 - DEBUG - VRF ids for VN ctest-vn-65612592: {}
2025-02-04 21:35:00,487 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2025-02-04 21:35:00,496 - DEBUG - Requesting: http://10.0.0.17:8082/domain/809c5091-19bf-4392-8173-730f899e9ebb
2025-02-04 21:35:00,509 - DEBUG - Requesting: http://10.0.0.17:8082/project/da6b778f-817c-4196-8d11-1edf67a6db9a
2025-02-04 21:35:00,582 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/d33a7ae1-7334-4a4d-859f-3dd72e0d90b2
2025-02-04 21:35:00,596 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/d33a7ae1-7334-4a4d-859f-3dd72e0d90b2
2025-02-04 21:35:00,609 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/8c3ea9c9-9afe-46e6-9dee-201782ca50f8
2025-02-04 21:35:00,618 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/8c3ea9c9-9afe-46e6-9dee-201782ca50f8
2025-02-04 21:35:00,626 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/fb428235-e2cd-4f0f-99c8-01067c9e4897
2025-02-04 21:35:00,635 - DEBUG - Route Targets: ['target:64512:8000006']
2025-02-04 21:35:00,635 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/d33a7ae1-7334-4a4d-859f-3dd72e0d90b2
2025-02-04 21:35:00,650 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/8c3ea9c9-9afe-46e6-9dee-201782ca50f8
2025-02-04 21:35:00,665 - INFO - Verified VN network id 9 for VN d33a7ae1-7334-4a4d-859f-3dd72e0d90b2
2025-02-04 21:35:00,665 - INFO - Verifications in API Server for VN ctest-vn-67363657 passed
2025-02-04 21:35:00,665 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/d33a7ae1-7334-4a4d-859f-3dd72e0d90b2
2025-02-04 21:35:00,679 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/8c3ea9c9-9afe-46e6-9dee-201782ca50f8
2025-02-04 21:35:00,690 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/8c3ea9c9-9afe-46e6-9dee-201782ca50f8
2025-02-04 21:35:00,699 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/fb428235-e2cd-4f0f-99c8-01067c9e4897
2025-02-04 21:35:00,715 - DEBUG - Control-node 10.0.0.17 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-79233957:ctest-vn-67363657', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-79233957', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15220612999371049549', 'uuid-lslong': '9628482522741313714'}, 'enable': 'true', 'created': '2025-02-04T21:34:58', 'last-modified': '2025-02-04T21:34:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.493700'}
2025-02-04 21:35:00,724 - DEBUG - Route Targets: ['target:64512:8000006']
2025-02-04 21:35:00,724 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-67363657 passed
2025-02-04 21:35:00,724 - DEBUG - ====Verifying policy data for ctest-vn-67363657 in API_Server ======
2025-02-04 21:35:00,724 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2025-02-04 21:35:00,737 - DEBUG - Requesting: http://10.0.0.17:8082/domain/809c5091-19bf-4392-8173-730f899e9ebb
2025-02-04 21:35:00,752 - DEBUG - Requesting: http://10.0.0.17:8082/project/da6b778f-817c-4196-8d11-1edf67a6db9a
2025-02-04 21:35:00,834 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/d33a7ae1-7334-4a4d-859f-3dd72e0d90b2
2025-02-04 21:35:00,844 - DEBUG - ==>Verifying data for policy with id: cf4170c6-4cfc-45bd-8e76-14c92ce08256, fqn: ['default-domain', 'ctest-TestBasicPolicy-79233957', 'ctest-policy-allow-all-70498599']
2025-02-04 21:35:00,844 - INFO - VN ctest-vn-67363657 Policy verification: verify_vn_policy_in_api_server, status: True
2025-02-04 21:35:00,845 - DEBUG - Verifying the vn in opserver
2025-02-04 21:35:00,845 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-79233957:ctest-vn-67363657 virtual network link through opserver 10.0.0.17
2025-02-04 21:35:00,845 - DEBUG - Requesting: http://10.0.0.17:8081/analytics/uves/virtual-networks
2025-02-04 21:35:00,860 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-79233957:ctest-vn-67363657', 'href': 'http://10.0.0.17:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-79233957:ctest-vn-67363657?flat'}
2025-02-04 21:35:00,860 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-79233957:ctest-vn-67363657 is found in opserver
2025-02-04 21:35:00,877 - DEBUG - Do not have enough data to verify VN in agent
2025-02-04 21:35:00,884 - DEBUG - VRF ids for VN ctest-vn-67363657: {}
2025-02-04 21:35:00,957 - DEBUG - Services list from nova: [