2025-01-03 21:41:52,085 - INFO - Domain Default found not creating
2025-01-03 21:41:52,241 - INFO - Project ctest-TestBasicPolicy-26995545 not found, creating it
2025-01-03 21:41:52,695 - INFO - Created Project:ctest-TestBasicPolicy-26995545, ID : 99442d6d-40f4-4d5d-8a76-7b1bb1e8d4e9
2025-01-03 21:41:54,164 - INFO - ================================================================================
2025-01-03 21:41:54,165 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-01-03 21:41:54,165 - 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-03 21:41:54,422 - DEBUG - Nothing to compare xmpp stats {'10.0.0.52': {'10.20.0.19': '0'}} with
2025-01-03 21:41:54,422 - INFO - Initial checks done. Running the testcase now
2025-01-03 21:41:54,422 - INFO -
2025-01-03 21:41:54,976 - DEBUG - Response for create_network : {'network': {'id': '13099778-5954-4b70-8dd1-5d6660a3a3d1', 'name': 'ctest-vn-53637644', 'tenant_id': '99442d6d40f44d5d8a767b1bb1e8d4e9', 'project_id': '99442d6d40f44d5d8a767b1bb1e8d4e9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-26995545', 'ctest-vn-53637644'], 'port_security_enabled': True, 'description': ''}}
2025-01-03 21:41:55,197 - DEBUG - Response for create_subnet : {'subnet': {'id': '3565c1c1-aea7-4b92-9d9e-65fb7d6a85ce', 'name': '', 'tenant_id': '99442d6d40f44d5d8a767b1bb1e8d4e9', 'network_id': '13099778-5954-4b70-8dd1-5d6660a3a3d1', 'ip_version': 4, 'cidr': '59.248.129.128/26', 'allocation_pools': [{'start': '59.248.129.130', 'end': '59.248.129.190'}], 'gateway_ip': '59.248.129.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '59.248.129.130', 'tags': [], 'project_id': '99442d6d40f44d5d8a767b1bb1e8d4e9'}}
2025-01-03 21:41:55,215 - INFO - Created VN ctest-vn-53637644
2025-01-03 21:41:55,267 - DEBUG - VN ctest-vn-53637644 UUID is 13099778-5954-4b70-8dd1-5d6660a3a3d1
2025-01-03 21:41:55,555 - DEBUG - Response for create_network : {'network': {'id': 'abbc3b42-b06d-4810-b1b4-6f9123141d7c', 'name': 'ctest-vn-37593770', 'tenant_id': '99442d6d40f44d5d8a767b1bb1e8d4e9', 'project_id': '99442d6d40f44d5d8a767b1bb1e8d4e9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-26995545', 'ctest-vn-37593770'], 'port_security_enabled': True, 'description': ''}}
2025-01-03 21:41:55,721 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ce17e8de-d76b-41ad-81b8-69f790bf2125', 'name': '', 'tenant_id': '99442d6d40f44d5d8a767b1bb1e8d4e9', 'network_id': 'abbc3b42-b06d-4810-b1b4-6f9123141d7c', 'ip_version': 4, 'cidr': '126.182.109.0/26', 'allocation_pools': [{'start': '126.182.109.2', 'end': '126.182.109.62'}], 'gateway_ip': '126.182.109.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '126.182.109.2', 'tags': [], 'project_id': '99442d6d40f44d5d8a767b1bb1e8d4e9'}}
2025-01-03 21:41:55,739 - INFO - Created VN ctest-vn-37593770
2025-01-03 21:41:55,791 - DEBUG - VN ctest-vn-37593770 UUID is abbc3b42-b06d-4810-b1b4-6f9123141d7c
2025-01-03 21:41:55,906 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-26995545:ctest-vn-53637644, 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-26995545:ctest-vn-37593770, 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-03 21:41:56,213 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '13099778-5954-4b70-8dd1-5d6660a3a3d1', 'name': 'ctest-vn-53637644', 'tenant_id': '99442d6d40f44d5d8a767b1bb1e8d4e9', 'project_id': '99442d6d40f44d5d8a767b1bb1e8d4e9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3565c1c1-aea7-4b92-9d9e-65fb7d6a85ce'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-26995545', 'ctest-vn-53637644'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-26995545', 'ctest-policy-allow-all-54186821']], 'subnet_ipam': [{'subnet_cidr': '59.248.129.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-03 21:41:56,463 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'abbc3b42-b06d-4810-b1b4-6f9123141d7c', 'name': 'ctest-vn-37593770', 'tenant_id': '99442d6d40f44d5d8a767b1bb1e8d4e9', 'project_id': '99442d6d40f44d5d8a767b1bb1e8d4e9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ce17e8de-d76b-41ad-81b8-69f790bf2125'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-26995545', 'ctest-vn-37593770'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-26995545', 'ctest-policy-allow-all-54186821']], 'subnet_ipam': [{'subnet_cidr': '126.182.109.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-03 21:41:56,655 - DEBUG - Requesting: http://10.0.0.52:8082/domains
2025-01-03 21:41:56,955 - DEBUG - Requesting: http://10.0.0.52:8082/domains
2025-01-03 21:41:56,986 - DEBUG - Requesting: http://10.0.0.52:8082/domain/c1e8ab91-877e-45c2-abba-b4f1c80fc21f
2025-01-03 21:41:57,000 - DEBUG - Requesting: http://10.0.0.52:8082/project/99442d6d-40f4-4d5d-8a76-7b1bb1e8d4e9
2025-01-03 21:41:57,080 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/13099778-5954-4b70-8dd1-5d6660a3a3d1
2025-01-03 21:41:57,093 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/13099778-5954-4b70-8dd1-5d6660a3a3d1
2025-01-03 21:41:57,103 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/25331f4c-d4f7-46ea-b4e8-2ecf36456436
2025-01-03 21:41:57,111 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/25331f4c-d4f7-46ea-b4e8-2ecf36456436
2025-01-03 21:41:57,119 - DEBUG - Requesting: http://10.0.0.52:8082/route-target/0c441575-c62d-489f-a596-736a9afddb28
2025-01-03 21:41:57,126 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-03 21:41:57,126 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/13099778-5954-4b70-8dd1-5d6660a3a3d1
2025-01-03 21:41:57,137 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/25331f4c-d4f7-46ea-b4e8-2ecf36456436
2025-01-03 21:41:57,153 - INFO - Verified VN network id 8 for VN 13099778-5954-4b70-8dd1-5d6660a3a3d1
2025-01-03 21:41:57,153 - INFO - Verifications in API Server for VN ctest-vn-53637644 passed
2025-01-03 21:41:57,153 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/13099778-5954-4b70-8dd1-5d6660a3a3d1
2025-01-03 21:41:57,165 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/25331f4c-d4f7-46ea-b4e8-2ecf36456436
2025-01-03 21:41:57,173 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/25331f4c-d4f7-46ea-b4e8-2ecf36456436
2025-01-03 21:41:57,186 - DEBUG - Requesting: http://10.0.0.52:8082/route-target/0c441575-c62d-489f-a596-736a9afddb28
2025-01-03 21:41:57,205 - DEBUG - Control-node 10.0.0.52 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-26995545:ctest-vn-53637644', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-26995545', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1371794104661592944', 'uuid-lslong': '10219051723769750481'}, 'enable': 'true', 'created': '2025-01-03T21:41:54', 'last-modified': '2025-01-03T21:41:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.020527'}
2025-01-03 21:41:57,213 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-03 21:41:57,213 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-53637644 passed
2025-01-03 21:41:57,213 - DEBUG - ====Verifying policy data for ctest-vn-53637644 in API_Server ======
2025-01-03 21:41:57,213 - DEBUG - Requesting: http://10.0.0.52:8082/domains
2025-01-03 21:41:57,220 - DEBUG - Requesting: http://10.0.0.52:8082/domain/c1e8ab91-877e-45c2-abba-b4f1c80fc21f
2025-01-03 21:41:57,232 - DEBUG - Requesting: http://10.0.0.52:8082/project/99442d6d-40f4-4d5d-8a76-7b1bb1e8d4e9
2025-01-03 21:41:57,311 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/13099778-5954-4b70-8dd1-5d6660a3a3d1
2025-01-03 21:41:57,323 - DEBUG - ==>Verifying data for policy with id: 3de31940-aeea-4d3e-81fc-3cdbc3a5ecd2, fqn: ['default-domain', 'ctest-TestBasicPolicy-26995545', 'ctest-policy-allow-all-54186821']
2025-01-03 21:41:57,323 - INFO - VN ctest-vn-53637644 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-03 21:41:57,323 - DEBUG - Verifying the vn in opserver
2025-01-03 21:41:57,323 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-26995545:ctest-vn-53637644 virtual network link through opserver 10.0.0.52
2025-01-03 21:41:57,323 - DEBUG - Requesting: http://10.0.0.52:8081/analytics/uves/virtual-networks
2025-01-03 21:41:57,618 - DEBUG - Requesting: http://10.0.0.52:8081/analytics/uves/virtual-networks
2025-01-03 21:41:57,676 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-26995545:ctest-vn-53637644', 'href': 'http://10.0.0.52:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-26995545:ctest-vn-53637644?flat'}
2025-01-03 21:41:57,676 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-26995545:ctest-vn-53637644 is found in opserver
2025-01-03 21:41:57,688 - DEBUG - Do not have enough data to verify VN in agent
2025-01-03 21:41:57,694 - DEBUG - VRF ids for VN ctest-vn-53637644: {}
2025-01-03 21:41:57,694 - DEBUG - Requesting: http://10.0.0.52:8082/domains
2025-01-03 21:41:57,700 - DEBUG - Requesting: http://10.0.0.52:8082/domain/c1e8ab91-877e-45c2-abba-b4f1c80fc21f
2025-01-03 21:41:57,713 - DEBUG - Requesting: http://10.0.0.52:8082/project/99442d6d-40f4-4d5d-8a76-7b1bb1e8d4e9
2025-01-03 21:41:57,794 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/abbc3b42-b06d-4810-b1b4-6f9123141d7c
2025-01-03 21:41:57,807 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/abbc3b42-b06d-4810-b1b4-6f9123141d7c
2025-01-03 21:41:57,817 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/a372a59a-6d2f-4694-b737-f46f5f39612a
2025-01-03 21:41:57,825 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/a372a59a-6d2f-4694-b737-f46f5f39612a
2025-01-03 21:41:57,832 - DEBUG - Requesting: http://10.0.0.52:8082/route-target/881ae094-f0bc-4b3e-b8a7-61f48f2ec931
2025-01-03 21:41:57,839 - DEBUG - Route Targets: ['target:64512:8000006']
2025-01-03 21:41:57,839 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/abbc3b42-b06d-4810-b1b4-6f9123141d7c
2025-01-03 21:41:57,848 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/a372a59a-6d2f-4694-b737-f46f5f39612a
2025-01-03 21:41:57,864 - INFO - Verified VN network id 9 for VN abbc3b42-b06d-4810-b1b4-6f9123141d7c
2025-01-03 21:41:57,864 - INFO - Verifications in API Server for VN ctest-vn-37593770 passed
2025-01-03 21:41:57,864 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/abbc3b42-b06d-4810-b1b4-6f9123141d7c
2025-01-03 21:41:57,875 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/a372a59a-6d2f-4694-b737-f46f5f39612a
2025-01-03 21:41:57,883 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/a372a59a-6d2f-4694-b737-f46f5f39612a
2025-01-03 21:41:57,891 - DEBUG - Requesting: http://10.0.0.52:8082/route-target/881ae094-f0bc-4b3e-b8a7-61f48f2ec931
2025-01-03 21:41:57,904 - DEBUG - Control-node 10.0.0.52 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-26995545:ctest-vn-37593770', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-26995545', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12374831033721112592', 'uuid-lslong': '12804982309670624636'}, 'enable': 'true', 'created': '2025-01-03T21:41:55', 'last-modified': '2025-01-03T21:41:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.467999'}
2025-01-03 21:41:57,911 - DEBUG - Route Targets: ['target:64512:8000006']
2025-01-03 21:41:57,911 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-37593770 passed
2025-01-03 21:41:57,911 - DEBUG - ====Verifying policy data for ctest-vn-37593770 in API_Server ======
2025-01-03 21:41:57,911 - DEBUG - Requesting: http://10.0.0.52:8082/domains
2025-01-03 21:41:57,917 - DEBUG - Requesting: http://10.0.0.52:8082/domain/c1e8ab91-877e-45c2-abba-b4f1c80fc21f
2025-01-03 21:41:57,934 - DEBUG - Requesting: http://10.0.0.52:8082/project/99442d6d-40f4-4d5d-8a76-7b1bb1e8d4e9
2025-01-03 21:41:58,013 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/abbc3b42-b06d-4810-b1b4-6f9123141d7c
2025-01-03 21:41:58,025 - DEBUG - ==>Verifying data for policy with id: 3de31940-aeea-4d3e-81fc-3cdbc3a5ecd2, fqn: ['default-domain', 'ctest-TestBasicPolicy-26995545', 'ctest-policy-allow-all-54186821']
2025-01-03 21:41:58,025 - INFO - VN ctest-vn-37593770 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-03 21:41:58,025 - DEBUG - Verifying the vn in opserver
2025-01-03 21:41:58,025 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-26995545:ctest-vn-37593770 virtual network link through opserver 10.0.0.52
2025-01-03 21:41:58,025 - DEBUG - Requesting: http://10.0.0.52:8081/analytics/uves/virtual-networks
2025-01-03 21:41:58,037 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-26995545:ctest-vn-37593770', 'href': 'http://10.0.0.52:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-26995545:ctest-vn-37593770?flat'}
2025-01-03 21:41:58,037 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-26995545:ctest-vn-37593770 is found in opserver
2025-01-03 21:41:58,051 - DEBUG - Do not have enough data to verify VN in agent
2025-01-03 21:41:58,058 - DEBUG - VRF ids for VN ctest-vn-37593770: {}
2025-01-03 21:41:58,126 - DEBUG - Services list from nova: [