2025-06-24 14:53:13,381 - INFO - Domain Default found not creating
2025-06-24 14:53:13,532 - INFO - Project ctest-TestBasicPolicy-90335466 not found, creating it
2025-06-24 14:53:14,066 - INFO - Created Project:ctest-TestBasicPolicy-90335466, ID : 271822cd-5b81-4d19-ae11-2f018aca9ba9
2025-06-24 14:53:15,555 - INFO - ================================================================================
2025-06-24 14:53:15,555 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-24 14:53:15,555 - 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-06-24 14:53:15,812 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with
2025-06-24 14:53:15,812 - INFO - Initial checks done. Running the testcase now
2025-06-24 14:53:15,812 - INFO -
2025-06-24 14:53:16,370 - DEBUG - Response for create_network : {'network': {'id': '57bc4639-7228-4b11-a57a-76d1a6fc5635', 'name': 'ctest-vn-73785905', 'tenant_id': '271822cd5b814d19ae112f018aca9ba9', 'project_id': '271822cd5b814d19ae112f018aca9ba9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90335466', 'ctest-vn-73785905'], 'port_security_enabled': True, 'description': ''}}
2025-06-24 14:53:16,590 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a8bd0c8e-b521-45ca-829a-abe7befffb99', 'name': '', 'tenant_id': '271822cd5b814d19ae112f018aca9ba9', 'network_id': '57bc4639-7228-4b11-a57a-76d1a6fc5635', 'ip_version': 4, 'cidr': '1.235.201.0/26', 'allocation_pools': [{'start': '1.235.201.2', 'end': '1.235.201.62'}], 'gateway_ip': '1.235.201.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '1.235.201.2', 'tags': [], 'project_id': '271822cd5b814d19ae112f018aca9ba9'}}
2025-06-24 14:53:16,608 - INFO - Created VN ctest-vn-73785905
2025-06-24 14:53:16,660 - DEBUG - VN ctest-vn-73785905 UUID is 57bc4639-7228-4b11-a57a-76d1a6fc5635
2025-06-24 14:53:16,981 - DEBUG - Response for create_network : {'network': {'id': '6b0f9f07-d759-4ca4-bc78-749407ce243b', 'name': 'ctest-vn-27396976', 'tenant_id': '271822cd5b814d19ae112f018aca9ba9', 'project_id': '271822cd5b814d19ae112f018aca9ba9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90335466', 'ctest-vn-27396976'], 'port_security_enabled': True, 'description': ''}}
2025-06-24 14:53:17,166 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f8e1d688-51ae-408c-8b40-904bbc4e49d4', 'name': '', 'tenant_id': '271822cd5b814d19ae112f018aca9ba9', 'network_id': '6b0f9f07-d759-4ca4-bc78-749407ce243b', 'ip_version': 4, 'cidr': '207.134.207.192/26', 'allocation_pools': [{'start': '207.134.207.194', 'end': '207.134.207.254'}], 'gateway_ip': '207.134.207.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '207.134.207.194', 'tags': [], 'project_id': '271822cd5b814d19ae112f018aca9ba9'}}
2025-06-24 14:53:17,188 - INFO - Created VN ctest-vn-27396976
2025-06-24 14:53:17,244 - DEBUG - VN ctest-vn-27396976 UUID is 6b0f9f07-d759-4ca4-bc78-749407ce243b
2025-06-24 14:53:17,356 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-90335466:ctest-vn-73785905, 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-90335466:ctest-vn-27396976, 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-06-24 14:53:17,663 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '57bc4639-7228-4b11-a57a-76d1a6fc5635', 'name': 'ctest-vn-73785905', 'tenant_id': '271822cd5b814d19ae112f018aca9ba9', 'project_id': '271822cd5b814d19ae112f018aca9ba9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a8bd0c8e-b521-45ca-829a-abe7befffb99'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90335466', 'ctest-vn-73785905'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-90335466', 'ctest-policy-allow-all-49805358']], 'subnet_ipam': [{'subnet_cidr': '1.235.201.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-24 14:53:17,890 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6b0f9f07-d759-4ca4-bc78-749407ce243b', 'name': 'ctest-vn-27396976', 'tenant_id': '271822cd5b814d19ae112f018aca9ba9', 'project_id': '271822cd5b814d19ae112f018aca9ba9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f8e1d688-51ae-408c-8b40-904bbc4e49d4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90335466', 'ctest-vn-27396976'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-90335466', 'ctest-policy-allow-all-49805358']], 'subnet_ipam': [{'subnet_cidr': '207.134.207.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-24 14:53:18,052 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-06-24 14:53:18,346 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-06-24 14:53:18,377 - DEBUG - Requesting: http://10.0.0.50:8082/domain/0d5c030e-8a25-4256-bd12-3aa8915e0c17
2025-06-24 14:53:18,392 - DEBUG - Requesting: http://10.0.0.50:8082/project/271822cd-5b81-4d19-ae11-2f018aca9ba9
2025-06-24 14:53:18,466 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/57bc4639-7228-4b11-a57a-76d1a6fc5635
2025-06-24 14:53:18,478 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/57bc4639-7228-4b11-a57a-76d1a6fc5635
2025-06-24 14:53:18,488 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/5b607dc3-3094-4eaf-b319-fe5f6178e5f2
2025-06-24 14:53:18,497 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/5b607dc3-3094-4eaf-b319-fe5f6178e5f2
2025-06-24 14:53:18,505 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/d2f98437-752b-456c-b3b3-50cd99697191
2025-06-24 14:53:18,511 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-24 14:53:18,511 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/57bc4639-7228-4b11-a57a-76d1a6fc5635
2025-06-24 14:53:18,522 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/5b607dc3-3094-4eaf-b319-fe5f6178e5f2
2025-06-24 14:53:18,537 - INFO - Verified VN network id 9 for VN 57bc4639-7228-4b11-a57a-76d1a6fc5635
2025-06-24 14:53:18,537 - INFO - Verifications in API Server for VN ctest-vn-73785905 passed
2025-06-24 14:53:18,537 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/57bc4639-7228-4b11-a57a-76d1a6fc5635
2025-06-24 14:53:18,547 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/5b607dc3-3094-4eaf-b319-fe5f6178e5f2
2025-06-24 14:53:18,555 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/5b607dc3-3094-4eaf-b319-fe5f6178e5f2
2025-06-24 14:53:18,562 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/d2f98437-752b-456c-b3b3-50cd99697191
2025-06-24 14:53:18,575 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-90335466:ctest-vn-73785905', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-90335466', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6322005189463657233', 'uuid-lslong': '11923973606238606901'}, 'enable': 'true', 'created': '2025-06-24T14:53:16', 'last-modified': '2025-06-24T14:53:17', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.943079'}
2025-06-24 14:53:18,581 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-24 14:53:18,581 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-73785905 passed
2025-06-24 14:53:18,582 - DEBUG - ====Verifying policy data for ctest-vn-73785905 in API_Server ======
2025-06-24 14:53:18,582 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-06-24 14:53:18,587 - DEBUG - Requesting: http://10.0.0.50:8082/domain/0d5c030e-8a25-4256-bd12-3aa8915e0c17
2025-06-24 14:53:18,598 - DEBUG - Requesting: http://10.0.0.50:8082/project/271822cd-5b81-4d19-ae11-2f018aca9ba9
2025-06-24 14:53:18,675 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/57bc4639-7228-4b11-a57a-76d1a6fc5635
2025-06-24 14:53:18,685 - DEBUG - ==>Verifying data for policy with id: 01769b08-32d4-4c47-9d33-a57e409a01b2, fqn: ['default-domain', 'ctest-TestBasicPolicy-90335466', 'ctest-policy-allow-all-49805358']
2025-06-24 14:53:18,685 - INFO - VN ctest-vn-73785905 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-24 14:53:18,685 - DEBUG - Verifying the vn in opserver
2025-06-24 14:53:18,685 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-90335466:ctest-vn-73785905 virtual network link through opserver 10.0.0.50
2025-06-24 14:53:18,685 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-06-24 14:53:18,987 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-06-24 14:53:19,051 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-90335466:ctest-vn-73785905', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-90335466:ctest-vn-73785905?flat'}
2025-06-24 14:53:19,051 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-90335466:ctest-vn-73785905 is found in opserver
2025-06-24 14:53:19,064 - DEBUG - Do not have enough data to verify VN in agent
2025-06-24 14:53:19,069 - DEBUG - VRF ids for VN ctest-vn-73785905: {}
2025-06-24 14:53:19,069 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-06-24 14:53:19,075 - DEBUG - Requesting: http://10.0.0.50:8082/domain/0d5c030e-8a25-4256-bd12-3aa8915e0c17
2025-06-24 14:53:19,087 - DEBUG - Requesting: http://10.0.0.50:8082/project/271822cd-5b81-4d19-ae11-2f018aca9ba9
2025-06-24 14:53:19,166 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/6b0f9f07-d759-4ca4-bc78-749407ce243b
2025-06-24 14:53:19,181 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/6b0f9f07-d759-4ca4-bc78-749407ce243b
2025-06-24 14:53:19,191 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/9799fb8f-33f7-4f0f-81da-0d9333bd3ae9
2025-06-24 14:53:19,200 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/9799fb8f-33f7-4f0f-81da-0d9333bd3ae9
2025-06-24 14:53:19,207 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/eca61883-438e-4660-9b55-4c2b29a0b7ac
2025-06-24 14:53:19,214 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-24 14:53:19,214 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/6b0f9f07-d759-4ca4-bc78-749407ce243b
2025-06-24 14:53:19,226 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/9799fb8f-33f7-4f0f-81da-0d9333bd3ae9
2025-06-24 14:53:19,243 - INFO - Verified VN network id 10 for VN 6b0f9f07-d759-4ca4-bc78-749407ce243b
2025-06-24 14:53:19,244 - INFO - Verifications in API Server for VN ctest-vn-27396976 passed
2025-06-24 14:53:19,244 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/6b0f9f07-d759-4ca4-bc78-749407ce243b
2025-06-24 14:53:19,256 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/9799fb8f-33f7-4f0f-81da-0d9333bd3ae9
2025-06-24 14:53:19,265 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/9799fb8f-33f7-4f0f-81da-0d9333bd3ae9
2025-06-24 14:53:19,273 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/eca61883-438e-4660-9b55-4c2b29a0b7ac
2025-06-24 14:53:19,289 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-90335466:ctest-vn-27396976', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-90335466', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7714559542735490212', 'uuid-lslong': '13580732855470662715'}, 'enable': 'true', 'created': '2025-06-24T14:53:16', 'last-modified': '2025-06-24T14:53:17', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.424917'}
2025-06-24 14:53:19,296 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-24 14:53:19,296 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-27396976 passed
2025-06-24 14:53:19,296 - DEBUG - ====Verifying policy data for ctest-vn-27396976 in API_Server ======
2025-06-24 14:53:19,296 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-06-24 14:53:19,302 - DEBUG - Requesting: http://10.0.0.50:8082/domain/0d5c030e-8a25-4256-bd12-3aa8915e0c17
2025-06-24 14:53:19,314 - DEBUG - Requesting: http://10.0.0.50:8082/project/271822cd-5b81-4d19-ae11-2f018aca9ba9
2025-06-24 14:53:19,389 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/6b0f9f07-d759-4ca4-bc78-749407ce243b
2025-06-24 14:53:19,399 - DEBUG - ==>Verifying data for policy with id: 01769b08-32d4-4c47-9d33-a57e409a01b2, fqn: ['default-domain', 'ctest-TestBasicPolicy-90335466', 'ctest-policy-allow-all-49805358']
2025-06-24 14:53:19,399 - INFO - VN ctest-vn-27396976 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-24 14:53:19,399 - DEBUG - Verifying the vn in opserver
2025-06-24 14:53:19,399 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-90335466:ctest-vn-27396976 virtual network link through opserver 10.0.0.50
2025-06-24 14:53:19,399 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-06-24 14:53:19,410 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-90335466:ctest-vn-27396976', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-90335466:ctest-vn-27396976?flat'}
2025-06-24 14:53:19,410 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-90335466:ctest-vn-27396976 is found in opserver
2025-06-24 14:53:19,422 - DEBUG - Do not have enough data to verify VN in agent
2025-06-24 14:53:19,429 - DEBUG - VRF ids for VN ctest-vn-27396976: {}
2025-06-24 14:53:19,499 - DEBUG - Services list from nova: [