2025-07-04 15:44:58,680 - INFO - Domain Default found not creating
2025-07-04 15:44:58,826 - INFO - Project ctest-TestBasicPolicy-85692962 not found, creating it
2025-07-04 15:44:59,276 - INFO - Created Project:ctest-TestBasicPolicy-85692962, ID : 9f1a9c2a-5945-4dc6-8671-f7ab5da29129
2025-07-04 15:45:00,818 - INFO - ================================================================================
2025-07-04 15:45:00,818 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-07-04 15:45:00,819 - 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-07-04 15:45:01,075 - DEBUG - Nothing to compare xmpp stats {'10.0.0.130': {'10.20.0.25': '0'}} with
2025-07-04 15:45:01,075 - INFO - Initial checks done. Running the testcase now
2025-07-04 15:45:01,075 - INFO -
2025-07-04 15:45:01,659 - DEBUG - Response for create_network : {'network': {'id': '7b276d0e-efb6-47b1-8f03-eb44b82472fc', 'name': 'ctest-vn-21015358', 'tenant_id': '9f1a9c2a59454dc68671f7ab5da29129', 'project_id': '9f1a9c2a59454dc68671f7ab5da29129', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-85692962', 'ctest-vn-21015358'], 'port_security_enabled': True, 'description': ''}}
2025-07-04 15:45:01,869 - DEBUG - Response for create_subnet : {'subnet': {'id': '0b986bc6-afd4-4ce7-bcdb-d996e22823e6', 'name': '', 'tenant_id': '9f1a9c2a59454dc68671f7ab5da29129', 'network_id': '7b276d0e-efb6-47b1-8f03-eb44b82472fc', 'ip_version': 4, 'cidr': '54.248.242.128/26', 'allocation_pools': [{'start': '54.248.242.130', 'end': '54.248.242.190'}], 'gateway_ip': '54.248.242.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '54.248.242.130', 'tags': [], 'project_id': '9f1a9c2a59454dc68671f7ab5da29129'}}
2025-07-04 15:45:01,891 - INFO - Created VN ctest-vn-21015358
2025-07-04 15:45:01,945 - DEBUG - VN ctest-vn-21015358 UUID is 7b276d0e-efb6-47b1-8f03-eb44b82472fc
2025-07-04 15:45:02,299 - DEBUG - Response for create_network : {'network': {'id': 'd0a3df43-d456-4dc3-a104-cabf2568b8da', 'name': 'ctest-vn-88918047', 'tenant_id': '9f1a9c2a59454dc68671f7ab5da29129', 'project_id': '9f1a9c2a59454dc68671f7ab5da29129', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-85692962', 'ctest-vn-88918047'], 'port_security_enabled': True, 'description': ''}}
2025-07-04 15:45:02,494 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e888029b-86d6-45bf-b0bb-d3192ef5319d', 'name': '', 'tenant_id': '9f1a9c2a59454dc68671f7ab5da29129', 'network_id': 'd0a3df43-d456-4dc3-a104-cabf2568b8da', 'ip_version': 4, 'cidr': '121.93.7.192/26', 'allocation_pools': [{'start': '121.93.7.194', 'end': '121.93.7.254'}], 'gateway_ip': '121.93.7.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '121.93.7.194', 'tags': [], 'project_id': '9f1a9c2a59454dc68671f7ab5da29129'}}
2025-07-04 15:45:02,514 - INFO - Created VN ctest-vn-88918047
2025-07-04 15:45:02,569 - DEBUG - VN ctest-vn-88918047 UUID is d0a3df43-d456-4dc3-a104-cabf2568b8da
2025-07-04 15:45:02,695 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-85692962:ctest-vn-21015358, 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-85692962:ctest-vn-88918047, 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-07-04 15:45:03,016 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7b276d0e-efb6-47b1-8f03-eb44b82472fc', 'name': 'ctest-vn-21015358', 'tenant_id': '9f1a9c2a59454dc68671f7ab5da29129', 'project_id': '9f1a9c2a59454dc68671f7ab5da29129', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0b986bc6-afd4-4ce7-bcdb-d996e22823e6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-85692962', 'ctest-vn-21015358'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-85692962', 'ctest-policy-allow-all-10629399']], 'subnet_ipam': [{'subnet_cidr': '54.248.242.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-04 15:45:03,263 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd0a3df43-d456-4dc3-a104-cabf2568b8da', 'name': 'ctest-vn-88918047', 'tenant_id': '9f1a9c2a59454dc68671f7ab5da29129', 'project_id': '9f1a9c2a59454dc68671f7ab5da29129', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e888029b-86d6-45bf-b0bb-d3192ef5319d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-85692962', 'ctest-vn-88918047'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-85692962', 'ctest-policy-allow-all-10629399']], 'subnet_ipam': [{'subnet_cidr': '121.93.7.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-04 15:45:03,413 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-07-04 15:45:03,713 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-07-04 15:45:03,744 - DEBUG - Requesting: http://10.0.0.130:8082/domain/3d701337-c4a0-468d-8639-16e50d3c5224
2025-07-04 15:45:03,760 - DEBUG - Requesting: http://10.0.0.130:8082/project/9f1a9c2a-5945-4dc6-8671-f7ab5da29129
2025-07-04 15:45:03,833 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/7b276d0e-efb6-47b1-8f03-eb44b82472fc
2025-07-04 15:45:03,845 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/7b276d0e-efb6-47b1-8f03-eb44b82472fc
2025-07-04 15:45:03,855 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/58c74710-ccf5-4c29-a780-ed1ddc8ece8b
2025-07-04 15:45:03,864 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/58c74710-ccf5-4c29-a780-ed1ddc8ece8b
2025-07-04 15:45:03,872 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/6fbcec2c-bb4d-478e-94d8-3b92839e8bbb
2025-07-04 15:45:03,880 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-04 15:45:03,880 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/7b276d0e-efb6-47b1-8f03-eb44b82472fc
2025-07-04 15:45:03,890 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/58c74710-ccf5-4c29-a780-ed1ddc8ece8b
2025-07-04 15:45:03,907 - INFO - Verified VN network id 8 for VN 7b276d0e-efb6-47b1-8f03-eb44b82472fc
2025-07-04 15:45:03,907 - INFO - Verifications in API Server for VN ctest-vn-21015358 passed
2025-07-04 15:45:03,907 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/7b276d0e-efb6-47b1-8f03-eb44b82472fc
2025-07-04 15:45:03,917 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/58c74710-ccf5-4c29-a780-ed1ddc8ece8b
2025-07-04 15:45:03,925 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/58c74710-ccf5-4c29-a780-ed1ddc8ece8b
2025-07-04 15:45:03,933 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/6fbcec2c-bb4d-478e-94d8-3b92839e8bbb
2025-07-04 15:45:03,946 - DEBUG - Control-node 10.0.0.130 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-85692962:ctest-vn-21015358', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-85692962', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8874181501675521969', 'uuid-lslong': '10305339052733526780'}, 'enable': 'true', 'created': '2025-07-04T15:45:01', 'last-modified': '2025-07-04T15:45:02', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.953101'}
2025-07-04 15:45:03,952 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-04 15:45:03,953 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-21015358 passed
2025-07-04 15:45:03,953 - DEBUG - ====Verifying policy data for ctest-vn-21015358 in API_Server ======
2025-07-04 15:45:03,953 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-07-04 15:45:03,959 - DEBUG - Requesting: http://10.0.0.130:8082/domain/3d701337-c4a0-468d-8639-16e50d3c5224
2025-07-04 15:45:03,971 - DEBUG - Requesting: http://10.0.0.130:8082/project/9f1a9c2a-5945-4dc6-8671-f7ab5da29129
2025-07-04 15:45:04,052 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/7b276d0e-efb6-47b1-8f03-eb44b82472fc
2025-07-04 15:45:04,064 - DEBUG - ==>Verifying data for policy with id: 79e5ca9d-95eb-4960-9175-5de44d3f6083, fqn: ['default-domain', 'ctest-TestBasicPolicy-85692962', 'ctest-policy-allow-all-10629399']
2025-07-04 15:45:04,064 - INFO - VN ctest-vn-21015358 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-04 15:45:04,064 - DEBUG - Verifying the vn in opserver
2025-07-04 15:45:04,064 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-85692962:ctest-vn-21015358 virtual network link through opserver 10.0.0.130
2025-07-04 15:45:04,064 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks
2025-07-04 15:45:04,356 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks
2025-07-04 15:45:04,421 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-85692962:ctest-vn-21015358', 'href': 'http://10.0.0.130:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-85692962:ctest-vn-21015358?flat'}
2025-07-04 15:45:04,421 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-85692962:ctest-vn-21015358 is found in opserver
2025-07-04 15:45:04,432 - DEBUG - Do not have enough data to verify VN in agent
2025-07-04 15:45:04,438 - DEBUG - VRF ids for VN ctest-vn-21015358: {}
2025-07-04 15:45:04,438 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-07-04 15:45:04,444 - DEBUG - Requesting: http://10.0.0.130:8082/domain/3d701337-c4a0-468d-8639-16e50d3c5224
2025-07-04 15:45:04,458 - DEBUG - Requesting: http://10.0.0.130:8082/project/9f1a9c2a-5945-4dc6-8671-f7ab5da29129
2025-07-04 15:45:04,547 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/d0a3df43-d456-4dc3-a104-cabf2568b8da
2025-07-04 15:45:04,561 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/d0a3df43-d456-4dc3-a104-cabf2568b8da
2025-07-04 15:45:04,573 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/0a2b5f51-0fc8-4d97-b9f4-295d9f8dcbc5
2025-07-04 15:45:04,584 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/0a2b5f51-0fc8-4d97-b9f4-295d9f8dcbc5
2025-07-04 15:45:04,592 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/726ea39b-5eda-40f8-be94-475113972c1f
2025-07-04 15:45:04,599 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-04 15:45:04,599 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/d0a3df43-d456-4dc3-a104-cabf2568b8da
2025-07-04 15:45:04,611 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/0a2b5f51-0fc8-4d97-b9f4-295d9f8dcbc5
2025-07-04 15:45:04,632 - INFO - Verified VN network id 9 for VN d0a3df43-d456-4dc3-a104-cabf2568b8da
2025-07-04 15:45:04,632 - INFO - Verifications in API Server for VN ctest-vn-88918047 passed
2025-07-04 15:45:04,632 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/d0a3df43-d456-4dc3-a104-cabf2568b8da
2025-07-04 15:45:04,646 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/0a2b5f51-0fc8-4d97-b9f4-295d9f8dcbc5
2025-07-04 15:45:04,655 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/0a2b5f51-0fc8-4d97-b9f4-295d9f8dcbc5
2025-07-04 15:45:04,665 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/726ea39b-5eda-40f8-be94-475113972c1f
2025-07-04 15:45:04,680 - DEBUG - Control-node 10.0.0.130 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-85692962:ctest-vn-88918047', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-85692962', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15034105463511076291', 'uuid-lslong': '11602621462328424666'}, 'enable': 'true', 'created': '2025-07-04T15:45:02', 'last-modified': '2025-07-04T15:45:03', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.444786'}
2025-07-04 15:45:04,686 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-04 15:45:04,686 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-88918047 passed
2025-07-04 15:45:04,687 - DEBUG - ====Verifying policy data for ctest-vn-88918047 in API_Server ======
2025-07-04 15:45:04,687 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-07-04 15:45:04,693 - DEBUG - Requesting: http://10.0.0.130:8082/domain/3d701337-c4a0-468d-8639-16e50d3c5224
2025-07-04 15:45:04,707 - DEBUG - Requesting: http://10.0.0.130:8082/project/9f1a9c2a-5945-4dc6-8671-f7ab5da29129
2025-07-04 15:45:04,788 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/d0a3df43-d456-4dc3-a104-cabf2568b8da
2025-07-04 15:45:04,799 - DEBUG - ==>Verifying data for policy with id: 79e5ca9d-95eb-4960-9175-5de44d3f6083, fqn: ['default-domain', 'ctest-TestBasicPolicy-85692962', 'ctest-policy-allow-all-10629399']
2025-07-04 15:45:04,799 - INFO - VN ctest-vn-88918047 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-04 15:45:04,799 - DEBUG - Verifying the vn in opserver
2025-07-04 15:45:04,799 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-85692962:ctest-vn-88918047 virtual network link through opserver 10.0.0.130
2025-07-04 15:45:04,799 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks
2025-07-04 15:45:04,811 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-85692962:ctest-vn-88918047', 'href': 'http://10.0.0.130:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-85692962:ctest-vn-88918047?flat'}
2025-07-04 15:45:04,811 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-85692962:ctest-vn-88918047 is found in opserver
2025-07-04 15:45:04,823 - DEBUG - Do not have enough data to verify VN in agent
2025-07-04 15:45:04,830 - DEBUG - VRF ids for VN ctest-vn-88918047: {}
2025-07-04 15:45:04,890 - DEBUG - Services list from nova: [