2025-04-03 16:03:30,628 - INFO - Domain Default found not creating
2025-04-03 16:03:30,784 - INFO - Project ctest-TestBasicPolicy-25104439 not found, creating it
2025-04-03 16:03:31,284 - INFO - Created Project:ctest-TestBasicPolicy-25104439, ID : 59762086-7920-40a6-8651-6744646213b6
2025-04-03 16:03:32,990 - INFO - ================================================================================
2025-04-03 16:03:32,990 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-03 16:03:32,990 - 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-03 16:03:33,252 - DEBUG - Nothing to compare xmpp stats {'10.0.0.30': {'10.20.0.5': '0'}} with
2025-04-03 16:03:33,253 - INFO - Initial checks done. Running the testcase now
2025-04-03 16:03:33,253 - INFO -
2025-04-03 16:03:33,887 - DEBUG - Response for create_network : {'network': {'id': 'aab35e75-3a3d-4bed-bdb5-2a2c33b5e330', 'name': 'ctest-vn-83740470', 'tenant_id': '59762086792040a686516744646213b6', 'project_id': '59762086792040a686516744646213b6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-25104439', 'ctest-vn-83740470'], 'port_security_enabled': True, 'description': ''}}
2025-04-03 16:03:34,058 - DEBUG - Response for create_subnet : {'subnet': {'id': '94f2ca4f-49f7-4ba2-bf09-9215ea7d175e', 'name': '', 'tenant_id': '59762086792040a686516744646213b6', 'network_id': 'aab35e75-3a3d-4bed-bdb5-2a2c33b5e330', 'ip_version': 4, 'cidr': '165.59.42.0/26', 'allocation_pools': [{'start': '165.59.42.2', 'end': '165.59.42.62'}], 'gateway_ip': '165.59.42.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '165.59.42.2', 'tags': [], 'project_id': '59762086792040a686516744646213b6'}}
2025-04-03 16:03:34,081 - INFO - Created VN ctest-vn-83740470
2025-04-03 16:03:34,135 - DEBUG - VN ctest-vn-83740470 UUID is aab35e75-3a3d-4bed-bdb5-2a2c33b5e330
2025-04-03 16:03:34,452 - DEBUG - Response for create_network : {'network': {'id': '981cfd88-9693-4cd5-a824-0e2561b3d2e5', 'name': 'ctest-vn-99651093', 'tenant_id': '59762086792040a686516744646213b6', 'project_id': '59762086792040a686516744646213b6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-25104439', 'ctest-vn-99651093'], 'port_security_enabled': True, 'description': ''}}
2025-04-03 16:03:34,640 - DEBUG - Response for create_subnet : {'subnet': {'id': '81135bd0-60ba-45ac-8c4e-21d8f3248da2', 'name': '', 'tenant_id': '59762086792040a686516744646213b6', 'network_id': '981cfd88-9693-4cd5-a824-0e2561b3d2e5', 'ip_version': 4, 'cidr': '189.145.238.192/26', 'allocation_pools': [{'start': '189.145.238.194', 'end': '189.145.238.254'}], 'gateway_ip': '189.145.238.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '189.145.238.194', 'tags': [], 'project_id': '59762086792040a686516744646213b6'}}
2025-04-03 16:03:34,662 - INFO - Created VN ctest-vn-99651093
2025-04-03 16:03:34,715 - DEBUG - VN ctest-vn-99651093 UUID is 981cfd88-9693-4cd5-a824-0e2561b3d2e5
2025-04-03 16:03:34,840 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-25104439:ctest-vn-83740470, 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-25104439:ctest-vn-99651093, 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-03 16:03:35,162 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'aab35e75-3a3d-4bed-bdb5-2a2c33b5e330', 'name': 'ctest-vn-83740470', 'tenant_id': '59762086792040a686516744646213b6', 'project_id': '59762086792040a686516744646213b6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['94f2ca4f-49f7-4ba2-bf09-9215ea7d175e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-25104439', 'ctest-vn-83740470'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-25104439', 'ctest-policy-allow-all-20249221']], 'subnet_ipam': [{'subnet_cidr': '165.59.42.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-03 16:03:35,432 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '981cfd88-9693-4cd5-a824-0e2561b3d2e5', 'name': 'ctest-vn-99651093', 'tenant_id': '59762086792040a686516744646213b6', 'project_id': '59762086792040a686516744646213b6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['81135bd0-60ba-45ac-8c4e-21d8f3248da2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-25104439', 'ctest-vn-99651093'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-25104439', 'ctest-policy-allow-all-20249221']], 'subnet_ipam': [{'subnet_cidr': '189.145.238.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-03 16:03:35,611 - DEBUG - Requesting: http://10.0.0.30:8082/domains
2025-04-03 16:03:35,951 - DEBUG - Requesting: http://10.0.0.30:8082/domains
2025-04-03 16:03:35,982 - DEBUG - Requesting: http://10.0.0.30:8082/domain/f4849bd4-05c4-44e9-9f84-82f23766dbed
2025-04-03 16:03:35,999 - DEBUG - Requesting: http://10.0.0.30:8082/project/59762086-7920-40a6-8651-6744646213b6
2025-04-03 16:03:36,075 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/aab35e75-3a3d-4bed-bdb5-2a2c33b5e330
2025-04-03 16:03:36,089 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/aab35e75-3a3d-4bed-bdb5-2a2c33b5e330
2025-04-03 16:03:36,102 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/84371191-8295-4181-93e9-9d247638f13a
2025-04-03 16:03:36,111 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/84371191-8295-4181-93e9-9d247638f13a
2025-04-03 16:03:36,119 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/46c2b7da-a358-4db8-9c50-d1d0d7b6cc05
2025-04-03 16:03:36,127 - DEBUG - Route Targets: ['target:64512:8000004']
2025-04-03 16:03:36,127 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/aab35e75-3a3d-4bed-bdb5-2a2c33b5e330
2025-04-03 16:03:36,139 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/84371191-8295-4181-93e9-9d247638f13a
2025-04-03 16:03:36,159 - INFO - Verified VN network id 9 for VN aab35e75-3a3d-4bed-bdb5-2a2c33b5e330
2025-04-03 16:03:36,159 - INFO - Verifications in API Server for VN ctest-vn-83740470 passed
2025-04-03 16:03:36,159 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/aab35e75-3a3d-4bed-bdb5-2a2c33b5e330
2025-04-03 16:03:36,172 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/84371191-8295-4181-93e9-9d247638f13a
2025-04-03 16:03:36,182 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/84371191-8295-4181-93e9-9d247638f13a
2025-04-03 16:03:36,191 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/46c2b7da-a358-4db8-9c50-d1d0d7b6cc05
2025-04-03 16:03:36,207 - DEBUG - Control-node 10.0.0.30 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-25104439:ctest-vn-83740470', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-25104439', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12300278864860236781', 'uuid-lslong': '13669878613287494448'}, 'enable': 'true', 'created': '2025-04-03T16:03:33', 'last-modified': '2025-04-03T16:03:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.073902'}
2025-04-03 16:03:36,215 - DEBUG - Route Targets: ['target:64512:8000004']
2025-04-03 16:03:36,215 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-83740470 passed
2025-04-03 16:03:36,215 - DEBUG - ====Verifying policy data for ctest-vn-83740470 in API_Server ======
2025-04-03 16:03:36,216 - DEBUG - Requesting: http://10.0.0.30:8082/domains
2025-04-03 16:03:36,224 - DEBUG - Requesting: http://10.0.0.30:8082/domain/f4849bd4-05c4-44e9-9f84-82f23766dbed
2025-04-03 16:03:36,239 - DEBUG - Requesting: http://10.0.0.30:8082/project/59762086-7920-40a6-8651-6744646213b6
2025-04-03 16:03:36,323 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/aab35e75-3a3d-4bed-bdb5-2a2c33b5e330
2025-04-03 16:03:36,335 - DEBUG - ==>Verifying data for policy with id: d3a138ce-81ca-49a8-8c41-900f1ae23bd3, fqn: ['default-domain', 'ctest-TestBasicPolicy-25104439', 'ctest-policy-allow-all-20249221']
2025-04-03 16:03:36,336 - INFO - VN ctest-vn-83740470 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-03 16:03:36,336 - DEBUG - Verifying the vn in opserver
2025-04-03 16:03:36,336 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-25104439:ctest-vn-83740470 virtual network link through opserver 10.0.0.30
2025-04-03 16:03:36,336 - DEBUG - Requesting: http://10.0.0.30:8081/analytics/uves/virtual-networks
2025-04-03 16:03:36,671 - DEBUG - Requesting: http://10.0.0.30:8081/analytics/uves/virtual-networks
2025-04-03 16:03:36,745 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-25104439:ctest-vn-83740470', 'href': 'http://10.0.0.30:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-25104439:ctest-vn-83740470?flat'}
2025-04-03 16:03:36,745 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-25104439:ctest-vn-83740470 is found in opserver
2025-04-03 16:03:36,758 - DEBUG - Do not have enough data to verify VN in agent
2025-04-03 16:03:36,764 - DEBUG - VRF ids for VN ctest-vn-83740470: {}
2025-04-03 16:03:36,764 - DEBUG - Requesting: http://10.0.0.30:8082/domains
2025-04-03 16:03:36,771 - DEBUG - Requesting: http://10.0.0.30:8082/domain/f4849bd4-05c4-44e9-9f84-82f23766dbed
2025-04-03 16:03:36,785 - DEBUG - Requesting: http://10.0.0.30:8082/project/59762086-7920-40a6-8651-6744646213b6
2025-04-03 16:03:36,864 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/981cfd88-9693-4cd5-a824-0e2561b3d2e5
2025-04-03 16:03:36,879 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/981cfd88-9693-4cd5-a824-0e2561b3d2e5
2025-04-03 16:03:36,890 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/0ec90322-fd37-4b3d-8241-41a45562cd1a
2025-04-03 16:03:36,899 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/0ec90322-fd37-4b3d-8241-41a45562cd1a
2025-04-03 16:03:36,908 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/689b96a1-ea2f-47c2-8a83-95e693fa503c
2025-04-03 16:03:36,916 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-03 16:03:36,916 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/981cfd88-9693-4cd5-a824-0e2561b3d2e5
2025-04-03 16:03:36,928 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/0ec90322-fd37-4b3d-8241-41a45562cd1a
2025-04-03 16:03:36,944 - INFO - Verified VN network id 10 for VN 981cfd88-9693-4cd5-a824-0e2561b3d2e5
2025-04-03 16:03:36,945 - INFO - Verifications in API Server for VN ctest-vn-99651093 passed
2025-04-03 16:03:36,945 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/981cfd88-9693-4cd5-a824-0e2561b3d2e5
2025-04-03 16:03:36,957 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/0ec90322-fd37-4b3d-8241-41a45562cd1a
2025-04-03 16:03:36,965 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/0ec90322-fd37-4b3d-8241-41a45562cd1a
2025-04-03 16:03:36,974 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/689b96a1-ea2f-47c2-8a83-95e693fa503c
2025-04-03 16:03:36,989 - DEBUG - Control-node 10.0.0.30 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-25104439:ctest-vn-99651093', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-25104439', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10960914356196560085', 'uuid-lslong': '12115824451249230565'}, 'enable': 'true', 'created': '2025-04-03T16:03:34', 'last-modified': '2025-04-03T16:03:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.607506'}
2025-04-03 16:03:36,996 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-03 16:03:36,996 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-99651093 passed
2025-04-03 16:03:36,997 - DEBUG - ====Verifying policy data for ctest-vn-99651093 in API_Server ======
2025-04-03 16:03:36,997 - DEBUG - Requesting: http://10.0.0.30:8082/domains
2025-04-03 16:03:37,003 - DEBUG - Requesting: http://10.0.0.30:8082/domain/f4849bd4-05c4-44e9-9f84-82f23766dbed
2025-04-03 16:03:37,017 - DEBUG - Requesting: http://10.0.0.30:8082/project/59762086-7920-40a6-8651-6744646213b6
2025-04-03 16:03:37,097 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/981cfd88-9693-4cd5-a824-0e2561b3d2e5
2025-04-03 16:03:37,109 - DEBUG - ==>Verifying data for policy with id: d3a138ce-81ca-49a8-8c41-900f1ae23bd3, fqn: ['default-domain', 'ctest-TestBasicPolicy-25104439', 'ctest-policy-allow-all-20249221']
2025-04-03 16:03:37,109 - INFO - VN ctest-vn-99651093 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-03 16:03:37,109 - DEBUG - Verifying the vn in opserver
2025-04-03 16:03:37,109 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-25104439:ctest-vn-99651093 virtual network link through opserver 10.0.0.30
2025-04-03 16:03:37,110 - DEBUG - Requesting: http://10.0.0.30:8081/analytics/uves/virtual-networks
2025-04-03 16:03:37,123 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-25104439:ctest-vn-99651093', 'href': 'http://10.0.0.30:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-25104439:ctest-vn-99651093?flat'}
2025-04-03 16:03:37,123 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-25104439:ctest-vn-99651093 is found in opserver
2025-04-03 16:03:37,136 - DEBUG - Do not have enough data to verify VN in agent
2025-04-03 16:03:37,143 - DEBUG - VRF ids for VN ctest-vn-99651093: {}
2025-04-03 16:03:37,205 - DEBUG - Services list from nova: [