2025-01-14 08:34:56,392 - INFO - Domain Default found not creating
2025-01-14 08:34:56,548 - INFO - Project ctest-TestBasicPolicy-44724355 not found, creating it
2025-01-14 08:34:57,050 - INFO - Created Project:ctest-TestBasicPolicy-44724355, ID : 96430452-0d72-44c0-8565-33e447dd625b
2025-01-14 08:34:58,522 - INFO - ================================================================================
2025-01-14 08:34:58,522 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-01-14 08:34:58,522 - 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 08:34:58,778 - DEBUG - Nothing to compare xmpp stats {'10.0.0.55': {'10.20.0.23': '0'}} with
2025-01-14 08:34:58,778 - INFO - Initial checks done. Running the testcase now
2025-01-14 08:34:58,778 - INFO -
2025-01-14 08:34:59,412 - DEBUG - Response for create_network : {'network': {'id': 'f0625c13-cb7b-4da8-b8d8-151e555569c9', 'name': 'ctest-vn-58373681', 'tenant_id': '964304520d7244c0856533e447dd625b', 'project_id': '964304520d7244c0856533e447dd625b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-44724355', 'ctest-vn-58373681'], 'port_security_enabled': True, 'description': ''}}
2025-01-14 08:34:59,592 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd4ccf479-bc54-40bf-aaed-3b04046a0ece', 'name': '', 'tenant_id': '964304520d7244c0856533e447dd625b', 'network_id': 'f0625c13-cb7b-4da8-b8d8-151e555569c9', 'ip_version': 4, 'cidr': '99.40.244.192/26', 'allocation_pools': [{'start': '99.40.244.194', 'end': '99.40.244.254'}], 'gateway_ip': '99.40.244.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '99.40.244.194', 'tags': [], 'project_id': '964304520d7244c0856533e447dd625b'}}
2025-01-14 08:34:59,614 - INFO - Created VN ctest-vn-58373681
2025-01-14 08:34:59,667 - DEBUG - VN ctest-vn-58373681 UUID is f0625c13-cb7b-4da8-b8d8-151e555569c9
2025-01-14 08:34:59,969 - DEBUG - Response for create_network : {'network': {'id': '5fa97590-c8c4-41f4-b135-62267ecec580', 'name': 'ctest-vn-05525090', 'tenant_id': '964304520d7244c0856533e447dd625b', 'project_id': '964304520d7244c0856533e447dd625b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-44724355', 'ctest-vn-05525090'], 'port_security_enabled': True, 'description': ''}}
2025-01-14 08:35:00,182 - DEBUG - Response for create_subnet : {'subnet': {'id': 'eead06a2-2024-4920-8e2d-960b894cd59b', 'name': '', 'tenant_id': '964304520d7244c0856533e447dd625b', 'network_id': '5fa97590-c8c4-41f4-b135-62267ecec580', 'ip_version': 4, 'cidr': '98.9.29.128/26', 'allocation_pools': [{'start': '98.9.29.130', 'end': '98.9.29.190'}], 'gateway_ip': '98.9.29.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '98.9.29.130', 'tags': [], 'project_id': '964304520d7244c0856533e447dd625b'}}
2025-01-14 08:35:00,212 - INFO - Created VN ctest-vn-05525090
2025-01-14 08:35:00,267 - DEBUG - VN ctest-vn-05525090 UUID is 5fa97590-c8c4-41f4-b135-62267ecec580
2025-01-14 08:35:00,396 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-44724355:ctest-vn-58373681, 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-44724355:ctest-vn-05525090, 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 08:35:00,713 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f0625c13-cb7b-4da8-b8d8-151e555569c9', 'name': 'ctest-vn-58373681', 'tenant_id': '964304520d7244c0856533e447dd625b', 'project_id': '964304520d7244c0856533e447dd625b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d4ccf479-bc54-40bf-aaed-3b04046a0ece'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-44724355', 'ctest-vn-58373681'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-44724355', 'ctest-policy-allow-all-07404175']], 'subnet_ipam': [{'subnet_cidr': '99.40.244.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-14 08:35:00,970 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5fa97590-c8c4-41f4-b135-62267ecec580', 'name': 'ctest-vn-05525090', 'tenant_id': '964304520d7244c0856533e447dd625b', 'project_id': '964304520d7244c0856533e447dd625b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['eead06a2-2024-4920-8e2d-960b894cd59b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-44724355', 'ctest-vn-05525090'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-44724355', 'ctest-policy-allow-all-07404175']], 'subnet_ipam': [{'subnet_cidr': '98.9.29.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-14 08:35:01,139 - DEBUG - Requesting: http://10.0.0.55:8082/domains
2025-01-14 08:35:01,437 - DEBUG - Requesting: http://10.0.0.55:8082/domains
2025-01-14 08:35:01,472 - DEBUG - Requesting: http://10.0.0.55:8082/domain/11a446e6-184f-4f6d-bcbd-0fe373cf62a0
2025-01-14 08:35:01,487 - DEBUG - Requesting: http://10.0.0.55:8082/project/96430452-0d72-44c0-8565-33e447dd625b
2025-01-14 08:35:01,572 - DEBUG - Requesting: http://10.0.0.55:8082/virtual-network/f0625c13-cb7b-4da8-b8d8-151e555569c9
2025-01-14 08:35:01,585 - DEBUG - Requesting: http://10.0.0.55:8082/virtual-network/f0625c13-cb7b-4da8-b8d8-151e555569c9
2025-01-14 08:35:01,596 - DEBUG - Requesting: http://10.0.0.55:8082/routing-instance/622f2158-d3a7-4293-a49b-3bde43de48a1
2025-01-14 08:35:01,611 - DEBUG - Requesting: http://10.0.0.55:8082/routing-instance/622f2158-d3a7-4293-a49b-3bde43de48a1
2025-01-14 08:35:01,621 - DEBUG - Requesting: http://10.0.0.55:8082/route-target/51b5ef3c-1a7c-43ff-9152-8fb8b0b2c68a
2025-01-14 08:35:01,630 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-14 08:35:01,630 - DEBUG - Requesting: http://10.0.0.55:8082/virtual-network/f0625c13-cb7b-4da8-b8d8-151e555569c9
2025-01-14 08:35:01,645 - DEBUG - Requesting: http://10.0.0.55:8082/routing-instance/622f2158-d3a7-4293-a49b-3bde43de48a1
2025-01-14 08:35:01,662 - INFO - Verified VN network id 8 for VN f0625c13-cb7b-4da8-b8d8-151e555569c9
2025-01-14 08:35:01,662 - INFO - Verifications in API Server for VN ctest-vn-58373681 passed
2025-01-14 08:35:01,662 - DEBUG - Requesting: http://10.0.0.55:8082/virtual-network/f0625c13-cb7b-4da8-b8d8-151e555569c9
2025-01-14 08:35:01,674 - DEBUG - Requesting: http://10.0.0.55:8082/routing-instance/622f2158-d3a7-4293-a49b-3bde43de48a1
2025-01-14 08:35:01,682 - DEBUG - Requesting: http://10.0.0.55:8082/routing-instance/622f2158-d3a7-4293-a49b-3bde43de48a1
2025-01-14 08:35:01,691 - DEBUG - Requesting: http://10.0.0.55:8082/route-target/51b5ef3c-1a7c-43ff-9152-8fb8b0b2c68a
2025-01-14 08:35:01,704 - DEBUG - Control-node 10.0.0.55 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-44724355:ctest-vn-58373681', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-44724355', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17321508356908338600', 'uuid-lslong': '13319419117973105097'}, 'enable': 'true', 'created': '2025-01-14T08:34:59', 'last-modified': '2025-01-14T08:35:00', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.012499'}
2025-01-14 08:35:01,712 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-14 08:35:01,712 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-58373681 passed
2025-01-14 08:35:01,712 - DEBUG - ====Verifying policy data for ctest-vn-58373681 in API_Server ======
2025-01-14 08:35:01,712 - DEBUG - Requesting: http://10.0.0.55:8082/domains
2025-01-14 08:35:01,719 - DEBUG - Requesting: http://10.0.0.55:8082/domain/11a446e6-184f-4f6d-bcbd-0fe373cf62a0
2025-01-14 08:35:01,732 - DEBUG - Requesting: http://10.0.0.55:8082/project/96430452-0d72-44c0-8565-33e447dd625b
2025-01-14 08:35:01,812 - DEBUG - Requesting: http://10.0.0.55:8082/virtual-network/f0625c13-cb7b-4da8-b8d8-151e555569c9
2025-01-14 08:35:01,823 - DEBUG - ==>Verifying data for policy with id: 35c92c6d-eca5-4fec-82be-7cd04178335e, fqn: ['default-domain', 'ctest-TestBasicPolicy-44724355', 'ctest-policy-allow-all-07404175']
2025-01-14 08:35:01,823 - INFO - VN ctest-vn-58373681 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-14 08:35:01,824 - DEBUG - Verifying the vn in opserver
2025-01-14 08:35:01,824 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-44724355:ctest-vn-58373681 virtual network link through opserver 10.0.0.55
2025-01-14 08:35:01,824 - DEBUG - Requesting: http://10.0.0.55:8081/analytics/uves/virtual-networks
2025-01-14 08:35:02,138 - DEBUG - Requesting: http://10.0.0.55:8081/analytics/uves/virtual-networks
2025-01-14 08:35:02,203 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-44724355:ctest-vn-58373681', 'href': 'http://10.0.0.55:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-44724355:ctest-vn-58373681?flat'}
2025-01-14 08:35:02,203 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-44724355:ctest-vn-58373681 is found in opserver
2025-01-14 08:35:02,215 - DEBUG - Do not have enough data to verify VN in agent
2025-01-14 08:35:02,220 - DEBUG - VRF ids for VN ctest-vn-58373681: {}
2025-01-14 08:35:02,220 - DEBUG - Requesting: http://10.0.0.55:8082/domains
2025-01-14 08:35:02,227 - DEBUG - Requesting: http://10.0.0.55:8082/domain/11a446e6-184f-4f6d-bcbd-0fe373cf62a0
2025-01-14 08:35:02,242 - DEBUG - Requesting: http://10.0.0.55:8082/project/96430452-0d72-44c0-8565-33e447dd625b
2025-01-14 08:35:02,321 - DEBUG - Requesting: http://10.0.0.55:8082/virtual-network/5fa97590-c8c4-41f4-b135-62267ecec580
2025-01-14 08:35:02,333 - DEBUG - Requesting: http://10.0.0.55:8082/virtual-network/5fa97590-c8c4-41f4-b135-62267ecec580
2025-01-14 08:35:02,342 - DEBUG - Requesting: http://10.0.0.55:8082/routing-instance/07923711-9f3b-43af-aaa7-ec68c383ebe2
2025-01-14 08:35:02,349 - DEBUG - Requesting: http://10.0.0.55:8082/routing-instance/07923711-9f3b-43af-aaa7-ec68c383ebe2
2025-01-14 08:35:02,357 - DEBUG - Requesting: http://10.0.0.55:8082/route-target/9dd53239-b41a-4d74-aa93-fa5fff718b47
2025-01-14 08:35:02,365 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-14 08:35:02,365 - DEBUG - Requesting: http://10.0.0.55:8082/virtual-network/5fa97590-c8c4-41f4-b135-62267ecec580
2025-01-14 08:35:02,375 - DEBUG - Requesting: http://10.0.0.55:8082/routing-instance/07923711-9f3b-43af-aaa7-ec68c383ebe2
2025-01-14 08:35:02,393 - INFO - Verified VN network id 9 for VN 5fa97590-c8c4-41f4-b135-62267ecec580
2025-01-14 08:35:02,393 - INFO - Verifications in API Server for VN ctest-vn-05525090 passed
2025-01-14 08:35:02,393 - DEBUG - Requesting: http://10.0.0.55:8082/virtual-network/5fa97590-c8c4-41f4-b135-62267ecec580
2025-01-14 08:35:02,406 - DEBUG - Requesting: http://10.0.0.55:8082/routing-instance/07923711-9f3b-43af-aaa7-ec68c383ebe2
2025-01-14 08:35:02,415 - DEBUG - Requesting: http://10.0.0.55:8082/routing-instance/07923711-9f3b-43af-aaa7-ec68c383ebe2
2025-01-14 08:35:02,424 - DEBUG - Requesting: http://10.0.0.55:8082/route-target/9dd53239-b41a-4d74-aa93-fa5fff718b47
2025-01-14 08:35:02,438 - DEBUG - Control-node 10.0.0.55 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-44724355:ctest-vn-05525090', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-44724355', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6893169969371300340', 'uuid-lslong': '12769220235954668928'}, 'enable': 'true', 'created': '2025-01-14T08:34:59', 'last-modified': '2025-01-14T08:35:00', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.492223'}
2025-01-14 08:35:02,444 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-14 08:35:02,444 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-05525090 passed
2025-01-14 08:35:02,444 - DEBUG - ====Verifying policy data for ctest-vn-05525090 in API_Server ======
2025-01-14 08:35:02,444 - DEBUG - Requesting: http://10.0.0.55:8082/domains
2025-01-14 08:35:02,451 - DEBUG - Requesting: http://10.0.0.55:8082/domain/11a446e6-184f-4f6d-bcbd-0fe373cf62a0
2025-01-14 08:35:02,465 - DEBUG - Requesting: http://10.0.0.55:8082/project/96430452-0d72-44c0-8565-33e447dd625b
2025-01-14 08:35:02,548 - DEBUG - Requesting: http://10.0.0.55:8082/virtual-network/5fa97590-c8c4-41f4-b135-62267ecec580
2025-01-14 08:35:02,560 - DEBUG - ==>Verifying data for policy with id: 35c92c6d-eca5-4fec-82be-7cd04178335e, fqn: ['default-domain', 'ctest-TestBasicPolicy-44724355', 'ctest-policy-allow-all-07404175']
2025-01-14 08:35:02,560 - INFO - VN ctest-vn-05525090 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-14 08:35:02,560 - DEBUG - Verifying the vn in opserver
2025-01-14 08:35:02,560 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-44724355:ctest-vn-05525090 virtual network link through opserver 10.0.0.55
2025-01-14 08:35:02,560 - DEBUG - Requesting: http://10.0.0.55:8081/analytics/uves/virtual-networks
2025-01-14 08:35:02,574 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-44724355:ctest-vn-05525090', 'href': 'http://10.0.0.55:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-44724355:ctest-vn-05525090?flat'}
2025-01-14 08:35:02,574 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-44724355:ctest-vn-05525090 is found in opserver
2025-01-14 08:35:02,587 - DEBUG - Do not have enough data to verify VN in agent
2025-01-14 08:35:02,593 - DEBUG - VRF ids for VN ctest-vn-05525090: {}
2025-01-14 08:35:02,658 - DEBUG - Services list from nova: [