2025-11-03 09:12:51,201 - INFO - Domain Default found not creating
2025-11-03 09:12:51,359 - INFO - Project ctest-TestBasicPolicy-47051311 not found, creating it
2025-11-03 09:12:51,810 - INFO - Created Project:ctest-TestBasicPolicy-47051311, ID : 6fd654de-d448-421b-8893-78eeee5b72ef
2025-11-03 09:12:53,393 - INFO - ================================================================================
2025-11-03 09:12:53,393 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-03 09:12:53,393 - 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-11-03 09:12:53,647 - DEBUG - Nothing to compare xmpp stats {'10.0.0.65': {'10.20.0.254': '0'}} with
2025-11-03 09:12:53,647 - INFO - Initial checks done. Running the testcase now
2025-11-03 09:12:53,648 - INFO -
2025-11-03 09:12:54,248 - DEBUG - Response for create_network : {'network': {'id': 'a81d7829-c806-4394-abaa-d7e0856b8b78', 'name': 'ctest-vn-14575304', 'tenant_id': '6fd654ded448421b889378eeee5b72ef', 'project_id': '6fd654ded448421b889378eeee5b72ef', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-47051311', 'ctest-vn-14575304'], 'port_security_enabled': True, 'description': ''}}
2025-11-03 09:12:54,432 - DEBUG - Response for create_subnet : {'subnet': {'id': 'eba847a6-4509-4e78-97fd-8b8fb1ddfdff', 'name': '', 'tenant_id': '6fd654ded448421b889378eeee5b72ef', 'network_id': 'a81d7829-c806-4394-abaa-d7e0856b8b78', 'ip_version': 4, 'cidr': '149.117.247.128/26', 'allocation_pools': [{'start': '149.117.247.130', 'end': '149.117.247.190'}], 'gateway_ip': '149.117.247.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '149.117.247.130', 'tags': [], 'project_id': '6fd654ded448421b889378eeee5b72ef'}}
2025-11-03 09:12:54,450 - INFO - Created VN ctest-vn-14575304
2025-11-03 09:12:54,506 - DEBUG - VN ctest-vn-14575304 UUID is a81d7829-c806-4394-abaa-d7e0856b8b78
2025-11-03 09:12:54,829 - DEBUG - Response for create_network : {'network': {'id': '8e24c731-1e66-481d-af43-02987fcd1484', 'name': 'ctest-vn-04530419', 'tenant_id': '6fd654ded448421b889378eeee5b72ef', 'project_id': '6fd654ded448421b889378eeee5b72ef', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-47051311', 'ctest-vn-04530419'], 'port_security_enabled': True, 'description': ''}}
2025-11-03 09:12:55,005 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a3e97a35-139c-4d6a-a3a8-ef78b366edbc', 'name': '', 'tenant_id': '6fd654ded448421b889378eeee5b72ef', 'network_id': '8e24c731-1e66-481d-af43-02987fcd1484', 'ip_version': 4, 'cidr': '57.73.93.128/26', 'allocation_pools': [{'start': '57.73.93.130', 'end': '57.73.93.190'}], 'gateway_ip': '57.73.93.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '57.73.93.130', 'tags': [], 'project_id': '6fd654ded448421b889378eeee5b72ef'}}
2025-11-03 09:12:55,023 - INFO - Created VN ctest-vn-04530419
2025-11-03 09:12:55,074 - DEBUG - VN ctest-vn-04530419 UUID is 8e24c731-1e66-481d-af43-02987fcd1484
2025-11-03 09:12:55,226 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-47051311:ctest-vn-14575304, 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-47051311:ctest-vn-04530419, 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-11-03 09:12:55,537 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a81d7829-c806-4394-abaa-d7e0856b8b78', 'name': 'ctest-vn-14575304', 'tenant_id': '6fd654ded448421b889378eeee5b72ef', 'project_id': '6fd654ded448421b889378eeee5b72ef', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['eba847a6-4509-4e78-97fd-8b8fb1ddfdff'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-47051311', 'ctest-vn-14575304'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-47051311', 'ctest-policy-allow-all-95575279']], 'subnet_ipam': [{'subnet_cidr': '149.117.247.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-03 09:12:55,784 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8e24c731-1e66-481d-af43-02987fcd1484', 'name': 'ctest-vn-04530419', 'tenant_id': '6fd654ded448421b889378eeee5b72ef', 'project_id': '6fd654ded448421b889378eeee5b72ef', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a3e97a35-139c-4d6a-a3a8-ef78b366edbc'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-47051311', 'ctest-vn-04530419'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-47051311', 'ctest-policy-allow-all-95575279']], 'subnet_ipam': [{'subnet_cidr': '57.73.93.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-03 09:12:55,962 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-11-03 09:12:56,311 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-11-03 09:12:56,342 - DEBUG - Requesting: http://10.0.0.65:8082/domain/411773d3-55f5-43b5-aeca-a54e26606168
2025-11-03 09:12:56,355 - DEBUG - Requesting: http://10.0.0.65:8082/project/6fd654de-d448-421b-8893-78eeee5b72ef
2025-11-03 09:12:56,426 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/a81d7829-c806-4394-abaa-d7e0856b8b78
2025-11-03 09:12:56,436 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/a81d7829-c806-4394-abaa-d7e0856b8b78
2025-11-03 09:12:56,444 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/b4291001-2677-4d6a-94d6-ee7260f4b689
2025-11-03 09:12:56,450 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/b4291001-2677-4d6a-94d6-ee7260f4b689
2025-11-03 09:12:56,455 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/a686bb4c-defb-474b-92d0-eeb20f4d3369
2025-11-03 09:12:56,461 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-03 09:12:56,461 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/a81d7829-c806-4394-abaa-d7e0856b8b78
2025-11-03 09:12:56,469 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/b4291001-2677-4d6a-94d6-ee7260f4b689
2025-11-03 09:12:56,481 - INFO - Verified VN network id 11 for VN a81d7829-c806-4394-abaa-d7e0856b8b78
2025-11-03 09:12:56,481 - INFO - Verifications in API Server for VN ctest-vn-14575304 passed
2025-11-03 09:12:56,481 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/a81d7829-c806-4394-abaa-d7e0856b8b78
2025-11-03 09:12:56,489 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/b4291001-2677-4d6a-94d6-ee7260f4b689
2025-11-03 09:12:56,495 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/b4291001-2677-4d6a-94d6-ee7260f4b689
2025-11-03 09:12:56,501 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/a686bb4c-defb-474b-92d0-eeb20f4d3369
2025-11-03 09:12:56,511 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-47051311:ctest-vn-14575304', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-47051311', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12113970693541348244', 'uuid-lslong': '12369936685837552504'}, 'enable': 'true', 'created': '2025-11-03T09:12:54', 'last-modified': '2025-11-03T09:12:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.997726'}
2025-11-03 09:12:56,516 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-03 09:12:56,517 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-14575304 passed
2025-11-03 09:12:56,517 - DEBUG - ====Verifying policy data for ctest-vn-14575304 in API_Server ======
2025-11-03 09:12:56,517 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-11-03 09:12:56,521 - DEBUG - Requesting: http://10.0.0.65:8082/domain/411773d3-55f5-43b5-aeca-a54e26606168
2025-11-03 09:12:56,533 - DEBUG - Requesting: http://10.0.0.65:8082/project/6fd654de-d448-421b-8893-78eeee5b72ef
2025-11-03 09:12:56,602 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/a81d7829-c806-4394-abaa-d7e0856b8b78
2025-11-03 09:12:56,611 - DEBUG - ==>Verifying data for policy with id: 2503c3c9-be8e-406b-8a95-ca33f9d94f0f, fqn: ['default-domain', 'ctest-TestBasicPolicy-47051311', 'ctest-policy-allow-all-95575279']
2025-11-03 09:12:56,612 - INFO - VN ctest-vn-14575304 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-03 09:12:56,612 - DEBUG - Verifying the vn in opserver
2025-11-03 09:12:56,612 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-47051311:ctest-vn-14575304 virtual network link through opserver 10.0.0.65
2025-11-03 09:12:56,612 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks
2025-11-03 09:12:56,950 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks
2025-11-03 09:12:57,006 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-47051311:ctest-vn-14575304', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-47051311:ctest-vn-14575304?flat'}
2025-11-03 09:12:57,006 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-47051311:ctest-vn-14575304 is found in opserver
2025-11-03 09:12:57,016 - DEBUG - Do not have enough data to verify VN in agent
2025-11-03 09:12:57,020 - DEBUG - VRF ids for VN ctest-vn-14575304: {}
2025-11-03 09:12:57,020 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-11-03 09:12:57,025 - DEBUG - Requesting: http://10.0.0.65:8082/domain/411773d3-55f5-43b5-aeca-a54e26606168
2025-11-03 09:12:57,036 - DEBUG - Requesting: http://10.0.0.65:8082/project/6fd654de-d448-421b-8893-78eeee5b72ef
2025-11-03 09:12:57,106 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/8e24c731-1e66-481d-af43-02987fcd1484
2025-11-03 09:12:57,119 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/8e24c731-1e66-481d-af43-02987fcd1484
2025-11-03 09:12:57,129 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/b36ace0e-5ab8-480e-88cf-1ccc56cb36a1
2025-11-03 09:12:57,137 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/b36ace0e-5ab8-480e-88cf-1ccc56cb36a1
2025-11-03 09:12:57,145 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/350b43b9-f690-4bea-836e-dd7a107a61c2
2025-11-03 09:12:57,153 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-03 09:12:57,153 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/8e24c731-1e66-481d-af43-02987fcd1484
2025-11-03 09:12:57,163 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/b36ace0e-5ab8-480e-88cf-1ccc56cb36a1
2025-11-03 09:12:57,176 - INFO - Verified VN network id 12 for VN 8e24c731-1e66-481d-af43-02987fcd1484
2025-11-03 09:12:57,177 - INFO - Verifications in API Server for VN ctest-vn-04530419 passed
2025-11-03 09:12:57,177 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/8e24c731-1e66-481d-af43-02987fcd1484
2025-11-03 09:12:57,186 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/b36ace0e-5ab8-480e-88cf-1ccc56cb36a1
2025-11-03 09:12:57,193 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/b36ace0e-5ab8-480e-88cf-1ccc56cb36a1
2025-11-03 09:12:57,200 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/350b43b9-f690-4bea-836e-dd7a107a61c2
2025-11-03 09:12:57,212 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-47051311:ctest-vn-04530419', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-47051311', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10242530466324695069', 'uuid-lslong': '12628940634079433860'}, 'enable': 'true', 'created': '2025-11-03T09:12:54', 'last-modified': '2025-11-03T09:12:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.451177'}
2025-11-03 09:12:57,219 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-03 09:12:57,219 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-04530419 passed
2025-11-03 09:12:57,219 - DEBUG - ====Verifying policy data for ctest-vn-04530419 in API_Server ======
2025-11-03 09:12:57,219 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-11-03 09:12:57,225 - DEBUG - Requesting: http://10.0.0.65:8082/domain/411773d3-55f5-43b5-aeca-a54e26606168
2025-11-03 09:12:57,235 - DEBUG - Requesting: http://10.0.0.65:8082/project/6fd654de-d448-421b-8893-78eeee5b72ef
2025-11-03 09:12:57,301 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/8e24c731-1e66-481d-af43-02987fcd1484
2025-11-03 09:12:57,310 - DEBUG - ==>Verifying data for policy with id: 2503c3c9-be8e-406b-8a95-ca33f9d94f0f, fqn: ['default-domain', 'ctest-TestBasicPolicy-47051311', 'ctest-policy-allow-all-95575279']
2025-11-03 09:12:57,310 - INFO - VN ctest-vn-04530419 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-03 09:12:57,310 - DEBUG - Verifying the vn in opserver
2025-11-03 09:12:57,310 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-47051311:ctest-vn-04530419 virtual network link through opserver 10.0.0.65
2025-11-03 09:12:57,310 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks
2025-11-03 09:12:57,320 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-47051311:ctest-vn-04530419', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-47051311:ctest-vn-04530419?flat'}
2025-11-03 09:12:57,320 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-47051311:ctest-vn-04530419 is found in opserver
2025-11-03 09:12:57,331 - DEBUG - Do not have enough data to verify VN in agent
2025-11-03 09:12:57,336 - DEBUG - VRF ids for VN ctest-vn-04530419: {}
2025-11-03 09:12:57,394 - DEBUG - Services list from nova: [