2025-02-18 09:59:59,000 - INFO - Domain Default found not creating
2025-02-18 09:59:59,139 - INFO - Project ctest-TestBasicPolicy-21964001 not found, creating it
2025-02-18 09:59:59,601 - INFO - Created Project:ctest-TestBasicPolicy-21964001, ID : d972c249-9667-4b53-8368-000c9847d605
2025-02-18 10:00:01,066 - INFO - ================================================================================
2025-02-18 10:00:01,066 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-02-18 10:00:01,066 - 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-18 10:00:01,328 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.5': '0'}} with
2025-02-18 10:00:01,329 - INFO - Initial checks done. Running the testcase now
2025-02-18 10:00:01,329 - INFO -
2025-02-18 10:00:01,902 - DEBUG - Response for create_network : {'network': {'id': '7e782cab-9a61-4ec5-b11b-fd06e87c12d2', 'name': 'ctest-vn-93813078', 'tenant_id': 'd972c24996674b538368000c9847d605', 'project_id': 'd972c24996674b538368000c9847d605', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-21964001', 'ctest-vn-93813078'], 'port_security_enabled': True, 'description': ''}}
2025-02-18 10:00:02,080 - DEBUG - Response for create_subnet : {'subnet': {'id': '5fe72b1d-a6d4-41aa-bae8-d6622d98d468', 'name': '', 'tenant_id': 'd972c24996674b538368000c9847d605', 'network_id': '7e782cab-9a61-4ec5-b11b-fd06e87c12d2', 'ip_version': 4, 'cidr': '83.74.51.0/26', 'allocation_pools': [{'start': '83.74.51.2', 'end': '83.74.51.62'}], 'gateway_ip': '83.74.51.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '83.74.51.2', 'tags': [], 'project_id': 'd972c24996674b538368000c9847d605'}}
2025-02-18 10:00:02,098 - INFO - Created VN ctest-vn-93813078
2025-02-18 10:00:02,150 - DEBUG - VN ctest-vn-93813078 UUID is 7e782cab-9a61-4ec5-b11b-fd06e87c12d2
2025-02-18 10:00:02,454 - DEBUG - Response for create_network : {'network': {'id': 'f181369a-589d-4698-ba83-8f562ddda9da', 'name': 'ctest-vn-12498162', 'tenant_id': 'd972c24996674b538368000c9847d605', 'project_id': 'd972c24996674b538368000c9847d605', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-21964001', 'ctest-vn-12498162'], 'port_security_enabled': True, 'description': ''}}
2025-02-18 10:00:02,611 - DEBUG - Response for create_subnet : {'subnet': {'id': '208d1520-fbf1-4969-829f-0a344f127790', 'name': '', 'tenant_id': 'd972c24996674b538368000c9847d605', 'network_id': 'f181369a-589d-4698-ba83-8f562ddda9da', 'ip_version': 4, 'cidr': '42.139.102.64/26', 'allocation_pools': [{'start': '42.139.102.66', 'end': '42.139.102.126'}], 'gateway_ip': '42.139.102.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '42.139.102.66', 'tags': [], 'project_id': 'd972c24996674b538368000c9847d605'}}
2025-02-18 10:00:02,629 - INFO - Created VN ctest-vn-12498162
2025-02-18 10:00:02,682 - DEBUG - VN ctest-vn-12498162 UUID is f181369a-589d-4698-ba83-8f562ddda9da
2025-02-18 10:00:02,800 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-21964001:ctest-vn-93813078, 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-21964001:ctest-vn-12498162, 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-18 10:00:03,120 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7e782cab-9a61-4ec5-b11b-fd06e87c12d2', 'name': 'ctest-vn-93813078', 'tenant_id': 'd972c24996674b538368000c9847d605', 'project_id': 'd972c24996674b538368000c9847d605', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5fe72b1d-a6d4-41aa-bae8-d6622d98d468'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-21964001', 'ctest-vn-93813078'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-21964001', 'ctest-policy-allow-all-17279431']], 'subnet_ipam': [{'subnet_cidr': '83.74.51.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-02-18 10:00:03,420 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f181369a-589d-4698-ba83-8f562ddda9da', 'name': 'ctest-vn-12498162', 'tenant_id': 'd972c24996674b538368000c9847d605', 'project_id': 'd972c24996674b538368000c9847d605', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['208d1520-fbf1-4969-829f-0a344f127790'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-21964001', 'ctest-vn-12498162'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-21964001', 'ctest-policy-allow-all-17279431']], 'subnet_ipam': [{'subnet_cidr': '42.139.102.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-02-18 10:00:03,567 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-02-18 10:00:03,869 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-02-18 10:00:03,899 - DEBUG - Requesting: http://10.0.0.38:8082/domain/f8c5d48d-01e1-4fbd-b4ec-065ca35c196c
2025-02-18 10:00:03,913 - DEBUG - Requesting: http://10.0.0.38:8082/project/d972c249-9667-4b53-8368-000c9847d605
2025-02-18 10:00:03,988 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/7e782cab-9a61-4ec5-b11b-fd06e87c12d2
2025-02-18 10:00:04,004 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/7e782cab-9a61-4ec5-b11b-fd06e87c12d2
2025-02-18 10:00:04,018 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a071e073-25ee-43cb-87d4-66337007b996
2025-02-18 10:00:04,030 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a071e073-25ee-43cb-87d4-66337007b996
2025-02-18 10:00:04,041 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/fcc64425-228b-433c-ac4d-c47d2360b703
2025-02-18 10:00:04,051 - DEBUG - Route Targets: ['target:64512:8000004']
2025-02-18 10:00:04,051 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/7e782cab-9a61-4ec5-b11b-fd06e87c12d2
2025-02-18 10:00:04,065 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a071e073-25ee-43cb-87d4-66337007b996
2025-02-18 10:00:04,085 - INFO - Verified VN network id 8 for VN 7e782cab-9a61-4ec5-b11b-fd06e87c12d2
2025-02-18 10:00:04,085 - INFO - Verifications in API Server for VN ctest-vn-93813078 passed
2025-02-18 10:00:04,085 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/7e782cab-9a61-4ec5-b11b-fd06e87c12d2
2025-02-18 10:00:04,098 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a071e073-25ee-43cb-87d4-66337007b996
2025-02-18 10:00:04,107 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a071e073-25ee-43cb-87d4-66337007b996
2025-02-18 10:00:04,116 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/fcc64425-228b-433c-ac4d-c47d2360b703
2025-02-18 10:00:04,133 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-21964001:ctest-vn-93813078', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-21964001', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9113082961525296837', 'uuid-lslong': '12762072175196508882'}, 'enable': 'true', 'created': '2025-02-18T10:00:01', 'last-modified': '2025-02-18T10:00:03', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.047281'}
2025-02-18 10:00:04,141 - DEBUG - Route Targets: ['target:64512:8000004']
2025-02-18 10:00:04,141 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-93813078 passed
2025-02-18 10:00:04,141 - DEBUG - ====Verifying policy data for ctest-vn-93813078 in API_Server ======
2025-02-18 10:00:04,141 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-02-18 10:00:04,149 - DEBUG - Requesting: http://10.0.0.38:8082/domain/f8c5d48d-01e1-4fbd-b4ec-065ca35c196c
2025-02-18 10:00:04,165 - DEBUG - Requesting: http://10.0.0.38:8082/project/d972c249-9667-4b53-8368-000c9847d605
2025-02-18 10:00:04,246 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/7e782cab-9a61-4ec5-b11b-fd06e87c12d2
2025-02-18 10:00:04,259 - DEBUG - ==>Verifying data for policy with id: d461e3fa-8fa7-42f0-9829-8ddce8ed048a, fqn: ['default-domain', 'ctest-TestBasicPolicy-21964001', 'ctest-policy-allow-all-17279431']
2025-02-18 10:00:04,259 - INFO - VN ctest-vn-93813078 Policy verification: verify_vn_policy_in_api_server, status: True
2025-02-18 10:00:04,259 - DEBUG - Verifying the vn in opserver
2025-02-18 10:00:04,259 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-21964001:ctest-vn-93813078 virtual network link through opserver 10.0.0.38
2025-02-18 10:00:04,259 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-02-18 10:00:04,553 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-02-18 10:00:04,618 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-21964001:ctest-vn-93813078', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-21964001:ctest-vn-93813078?flat'}
2025-02-18 10:00:04,618 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-21964001:ctest-vn-93813078 is found in opserver
2025-02-18 10:00:04,631 - DEBUG - Do not have enough data to verify VN in agent
2025-02-18 10:00:04,637 - DEBUG - VRF ids for VN ctest-vn-93813078: {}
2025-02-18 10:00:04,637 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-02-18 10:00:04,645 - DEBUG - Requesting: http://10.0.0.38:8082/domain/f8c5d48d-01e1-4fbd-b4ec-065ca35c196c
2025-02-18 10:00:04,659 - DEBUG - Requesting: http://10.0.0.38:8082/project/d972c249-9667-4b53-8368-000c9847d605
2025-02-18 10:00:04,737 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f181369a-589d-4698-ba83-8f562ddda9da
2025-02-18 10:00:04,753 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f181369a-589d-4698-ba83-8f562ddda9da
2025-02-18 10:00:04,764 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9a620079-0418-43d1-bd2c-0c6419e7b26a
2025-02-18 10:00:04,773 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9a620079-0418-43d1-bd2c-0c6419e7b26a
2025-02-18 10:00:04,782 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/71216001-63ff-41f1-82f1-f7aa3b78a780
2025-02-18 10:00:04,791 - DEBUG - Route Targets: ['target:64512:8000005']
2025-02-18 10:00:04,791 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f181369a-589d-4698-ba83-8f562ddda9da
2025-02-18 10:00:04,802 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9a620079-0418-43d1-bd2c-0c6419e7b26a
2025-02-18 10:00:04,822 - INFO - Verified VN network id 9 for VN f181369a-589d-4698-ba83-8f562ddda9da
2025-02-18 10:00:04,822 - INFO - Verifications in API Server for VN ctest-vn-12498162 passed
2025-02-18 10:00:04,822 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f181369a-589d-4698-ba83-8f562ddda9da
2025-02-18 10:00:04,836 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9a620079-0418-43d1-bd2c-0c6419e7b26a
2025-02-18 10:00:04,844 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9a620079-0418-43d1-bd2c-0c6419e7b26a
2025-02-18 10:00:04,852 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/71216001-63ff-41f1-82f1-f7aa3b78a780
2025-02-18 10:00:04,866 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-21964001:ctest-vn-12498162', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-21964001', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17402250471675872920', 'uuid-lslong': '13439743313303153114'}, 'enable': 'true', 'created': '2025-02-18T10:00:02', 'last-modified': '2025-02-18T10:00:03', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.520269'}
2025-02-18 10:00:04,874 - DEBUG - Route Targets: ['target:64512:8000005']
2025-02-18 10:00:04,874 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-12498162 passed
2025-02-18 10:00:04,874 - DEBUG - ====Verifying policy data for ctest-vn-12498162 in API_Server ======
2025-02-18 10:00:04,874 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-02-18 10:00:04,882 - DEBUG - Requesting: http://10.0.0.38:8082/domain/f8c5d48d-01e1-4fbd-b4ec-065ca35c196c
2025-02-18 10:00:04,899 - DEBUG - Requesting: http://10.0.0.38:8082/project/d972c249-9667-4b53-8368-000c9847d605
2025-02-18 10:00:04,979 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f181369a-589d-4698-ba83-8f562ddda9da
2025-02-18 10:00:04,993 - DEBUG - ==>Verifying data for policy with id: d461e3fa-8fa7-42f0-9829-8ddce8ed048a, fqn: ['default-domain', 'ctest-TestBasicPolicy-21964001', 'ctest-policy-allow-all-17279431']
2025-02-18 10:00:04,993 - INFO - VN ctest-vn-12498162 Policy verification: verify_vn_policy_in_api_server, status: True
2025-02-18 10:00:04,993 - DEBUG - Verifying the vn in opserver
2025-02-18 10:00:04,994 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-21964001:ctest-vn-12498162 virtual network link through opserver 10.0.0.38
2025-02-18 10:00:04,994 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-02-18 10:00:05,008 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-21964001:ctest-vn-12498162', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-21964001:ctest-vn-12498162?flat'}
2025-02-18 10:00:05,008 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-21964001:ctest-vn-12498162 is found in opserver
2025-02-18 10:00:05,020 - DEBUG - Do not have enough data to verify VN in agent
2025-02-18 10:00:05,025 - DEBUG - VRF ids for VN ctest-vn-12498162: {}
2025-02-18 10:00:05,090 - DEBUG - Services list from nova: [