2025-11-20 16:58:47,146 - INFO - Domain Default found not creating
2025-11-20 16:58:47,284 - INFO - Project ctest-TestBasicPolicy-35979971 not found, creating it
2025-11-20 16:58:47,724 - INFO - Created Project:ctest-TestBasicPolicy-35979971, ID : 2bbd345a-6cb0-43a8-a483-5b199a1334b5
2025-11-20 16:58:49,102 - INFO - ================================================================================
2025-11-20 16:58:49,102 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-20 16:58:49,102 - 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-20 16:58:49,354 - DEBUG - Nothing to compare xmpp stats {'10.0.0.154': {'10.20.0.252': '0'}} with
2025-11-20 16:58:49,354 - INFO - Initial checks done. Running the testcase now
2025-11-20 16:58:49,354 - INFO -
2025-11-20 16:58:49,900 - DEBUG - Response for create_network : {'network': {'id': '752d94b6-6a0b-4c87-bbdb-7ecc59dbf6bf', 'name': 'ctest-vn-55672475', 'tenant_id': '2bbd345a6cb043a8a4835b199a1334b5', 'project_id': '2bbd345a6cb043a8a4835b199a1334b5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-35979971', 'ctest-vn-55672475'], 'port_security_enabled': True, 'description': ''}}
2025-11-20 16:58:50,051 - DEBUG - Response for create_subnet : {'subnet': {'id': '0e59cc26-1685-410e-90e4-757706195398', 'name': '', 'tenant_id': '2bbd345a6cb043a8a4835b199a1334b5', 'network_id': '752d94b6-6a0b-4c87-bbdb-7ecc59dbf6bf', 'ip_version': 4, 'cidr': '128.230.241.128/26', 'allocation_pools': [{'start': '128.230.241.130', 'end': '128.230.241.190'}], 'gateway_ip': '128.230.241.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '128.230.241.130', 'tags': [], 'project_id': '2bbd345a6cb043a8a4835b199a1334b5'}}
2025-11-20 16:58:50,070 - INFO - Created VN ctest-vn-55672475
2025-11-20 16:58:50,121 - DEBUG - VN ctest-vn-55672475 UUID is 752d94b6-6a0b-4c87-bbdb-7ecc59dbf6bf
2025-11-20 16:58:50,419 - DEBUG - Response for create_network : {'network': {'id': '18b31d5e-fec1-4a79-82f5-986fec1dab07', 'name': 'ctest-vn-89368000', 'tenant_id': '2bbd345a6cb043a8a4835b199a1334b5', 'project_id': '2bbd345a6cb043a8a4835b199a1334b5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-35979971', 'ctest-vn-89368000'], 'port_security_enabled': True, 'description': ''}}
2025-11-20 16:58:50,599 - DEBUG - Response for create_subnet : {'subnet': {'id': '2c595ca6-951e-4cff-9413-958e2f974361', 'name': '', 'tenant_id': '2bbd345a6cb043a8a4835b199a1334b5', 'network_id': '18b31d5e-fec1-4a79-82f5-986fec1dab07', 'ip_version': 4, 'cidr': '216.138.57.192/26', 'allocation_pools': [{'start': '216.138.57.194', 'end': '216.138.57.254'}], 'gateway_ip': '216.138.57.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '216.138.57.194', 'tags': [], 'project_id': '2bbd345a6cb043a8a4835b199a1334b5'}}
2025-11-20 16:58:50,616 - INFO - Created VN ctest-vn-89368000
2025-11-20 16:58:50,665 - DEBUG - VN ctest-vn-89368000 UUID is 18b31d5e-fec1-4a79-82f5-986fec1dab07
2025-11-20 16:58:50,805 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-35979971:ctest-vn-55672475, 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-35979971:ctest-vn-89368000, 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-20 16:58:51,084 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '752d94b6-6a0b-4c87-bbdb-7ecc59dbf6bf', 'name': 'ctest-vn-55672475', 'tenant_id': '2bbd345a6cb043a8a4835b199a1334b5', 'project_id': '2bbd345a6cb043a8a4835b199a1334b5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0e59cc26-1685-410e-90e4-757706195398'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-35979971', 'ctest-vn-55672475'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-35979971', 'ctest-policy-allow-all-48903666']], 'subnet_ipam': [{'subnet_cidr': '128.230.241.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-20 16:58:51,301 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '18b31d5e-fec1-4a79-82f5-986fec1dab07', 'name': 'ctest-vn-89368000', 'tenant_id': '2bbd345a6cb043a8a4835b199a1334b5', 'project_id': '2bbd345a6cb043a8a4835b199a1334b5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2c595ca6-951e-4cff-9413-958e2f974361'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-35979971', 'ctest-vn-89368000'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-35979971', 'ctest-policy-allow-all-48903666']], 'subnet_ipam': [{'subnet_cidr': '216.138.57.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-20 16:58:51,469 - DEBUG - Requesting: http://10.0.0.154:8082/domains
2025-11-20 16:58:51,762 - DEBUG - Requesting: http://10.0.0.154:8082/domains
2025-11-20 16:58:51,802 - DEBUG - Requesting: http://10.0.0.154:8082/domain/53488b3d-1c95-41aa-8d92-27cb3d77be14
2025-11-20 16:58:51,813 - DEBUG - Requesting: http://10.0.0.154:8082/project/2bbd345a-6cb0-43a8-a483-5b199a1334b5
2025-11-20 16:58:51,978 - DEBUG - Requesting: http://10.0.0.154:8082/virtual-network/752d94b6-6a0b-4c87-bbdb-7ecc59dbf6bf
2025-11-20 16:58:51,999 - DEBUG - Requesting: http://10.0.0.154:8082/virtual-network/752d94b6-6a0b-4c87-bbdb-7ecc59dbf6bf
2025-11-20 16:58:52,029 - DEBUG - Requesting: http://10.0.0.154:8082/routing-instance/2822964f-27c9-415c-b5d4-04180a4fa273
2025-11-20 16:58:52,037 - DEBUG - Requesting: http://10.0.0.154:8082/routing-instance/2822964f-27c9-415c-b5d4-04180a4fa273
2025-11-20 16:58:52,043 - DEBUG - Requesting: http://10.0.0.154:8082/route-target/2b33e916-e0bb-4991-853e-7bd7606edbed
2025-11-20 16:58:52,052 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-20 16:58:52,052 - DEBUG - Requesting: http://10.0.0.154:8082/virtual-network/752d94b6-6a0b-4c87-bbdb-7ecc59dbf6bf
2025-11-20 16:58:52,065 - DEBUG - Requesting: http://10.0.0.154:8082/routing-instance/2822964f-27c9-415c-b5d4-04180a4fa273
2025-11-20 16:58:52,083 - INFO - Verified VN network id 12 for VN 752d94b6-6a0b-4c87-bbdb-7ecc59dbf6bf
2025-11-20 16:58:52,083 - INFO - Verifications in API Server for VN ctest-vn-55672475 passed
2025-11-20 16:58:52,083 - DEBUG - Requesting: http://10.0.0.154:8082/virtual-network/752d94b6-6a0b-4c87-bbdb-7ecc59dbf6bf
2025-11-20 16:58:52,093 - DEBUG - Requesting: http://10.0.0.154:8082/routing-instance/2822964f-27c9-415c-b5d4-04180a4fa273
2025-11-20 16:58:52,114 - DEBUG - Requesting: http://10.0.0.154:8082/routing-instance/2822964f-27c9-415c-b5d4-04180a4fa273
2025-11-20 16:58:52,133 - DEBUG - Requesting: http://10.0.0.154:8082/route-target/2b33e916-e0bb-4991-853e-7bd7606edbed
2025-11-20 16:58:52,154 - DEBUG - Control-node 10.0.0.154 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-35979971:ctest-vn-55672475', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-35979971', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8443568387573632135', 'uuid-lslong': '13536552521138173631'}, 'enable': 'true', 'created': '2025-11-20T16:58:49', 'last-modified': '2025-11-20T16:58:51', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.085257'}
2025-11-20 16:58:52,162 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-20 16:58:52,162 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-55672475 passed
2025-11-20 16:58:52,162 - DEBUG - ====Verifying policy data for ctest-vn-55672475 in API_Server ======
2025-11-20 16:58:52,162 - DEBUG - Requesting: http://10.0.0.154:8082/domains
2025-11-20 16:58:52,181 - DEBUG - Requesting: http://10.0.0.154:8082/domain/53488b3d-1c95-41aa-8d92-27cb3d77be14
2025-11-20 16:58:52,244 - DEBUG - Requesting: http://10.0.0.154:8082/project/2bbd345a-6cb0-43a8-a483-5b199a1334b5
2025-11-20 16:58:52,366 - DEBUG - Requesting: http://10.0.0.154:8082/virtual-network/752d94b6-6a0b-4c87-bbdb-7ecc59dbf6bf
2025-11-20 16:58:52,380 - DEBUG - ==>Verifying data for policy with id: 8ee8a927-0550-4609-94b9-969848f5a5c7, fqn: ['default-domain', 'ctest-TestBasicPolicy-35979971', 'ctest-policy-allow-all-48903666']
2025-11-20 16:58:52,380 - INFO - VN ctest-vn-55672475 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-20 16:58:52,380 - DEBUG - Verifying the vn in opserver
2025-11-20 16:58:52,380 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-35979971:ctest-vn-55672475 virtual network link through opserver 10.0.0.154
2025-11-20 16:58:52,380 - DEBUG - Requesting: http://10.0.0.154:8081/analytics/uves/virtual-networks
2025-11-20 16:58:52,683 - DEBUG - Requesting: http://10.0.0.154:8081/analytics/uves/virtual-networks
2025-11-20 16:58:52,736 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-35979971:ctest-vn-55672475', 'href': 'http://10.0.0.154:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-35979971:ctest-vn-55672475?flat'}
2025-11-20 16:58:52,736 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-35979971:ctest-vn-55672475 is found in opserver
2025-11-20 16:58:52,746 - DEBUG - Do not have enough data to verify VN in agent
2025-11-20 16:58:52,750 - DEBUG - VRF ids for VN ctest-vn-55672475: {}
2025-11-20 16:58:52,750 - DEBUG - Requesting: http://10.0.0.154:8082/domains
2025-11-20 16:58:52,754 - DEBUG - Requesting: http://10.0.0.154:8082/domain/53488b3d-1c95-41aa-8d92-27cb3d77be14
2025-11-20 16:58:52,764 - DEBUG - Requesting: http://10.0.0.154:8082/project/2bbd345a-6cb0-43a8-a483-5b199a1334b5
2025-11-20 16:58:52,832 - DEBUG - Requesting: http://10.0.0.154:8082/virtual-network/18b31d5e-fec1-4a79-82f5-986fec1dab07
2025-11-20 16:58:52,842 - DEBUG - Requesting: http://10.0.0.154:8082/virtual-network/18b31d5e-fec1-4a79-82f5-986fec1dab07
2025-11-20 16:58:52,850 - DEBUG - Requesting: http://10.0.0.154:8082/routing-instance/34185454-4ac8-4bf5-bbc5-b4f7b41a2bd8
2025-11-20 16:58:52,856 - DEBUG - Requesting: http://10.0.0.154:8082/routing-instance/34185454-4ac8-4bf5-bbc5-b4f7b41a2bd8
2025-11-20 16:58:52,861 - DEBUG - Requesting: http://10.0.0.154:8082/route-target/49e1c283-e61f-49eb-8054-e02bc7aba59c
2025-11-20 16:58:52,866 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-20 16:58:52,866 - DEBUG - Requesting: http://10.0.0.154:8082/virtual-network/18b31d5e-fec1-4a79-82f5-986fec1dab07
2025-11-20 16:58:52,873 - DEBUG - Requesting: http://10.0.0.154:8082/routing-instance/34185454-4ac8-4bf5-bbc5-b4f7b41a2bd8
2025-11-20 16:58:52,883 - INFO - Verified VN network id 13 for VN 18b31d5e-fec1-4a79-82f5-986fec1dab07
2025-11-20 16:58:52,883 - INFO - Verifications in API Server for VN ctest-vn-89368000 passed
2025-11-20 16:58:52,883 - DEBUG - Requesting: http://10.0.0.154:8082/virtual-network/18b31d5e-fec1-4a79-82f5-986fec1dab07
2025-11-20 16:58:52,891 - DEBUG - Requesting: http://10.0.0.154:8082/routing-instance/34185454-4ac8-4bf5-bbc5-b4f7b41a2bd8
2025-11-20 16:58:52,896 - DEBUG - Requesting: http://10.0.0.154:8082/routing-instance/34185454-4ac8-4bf5-bbc5-b4f7b41a2bd8
2025-11-20 16:58:52,901 - DEBUG - Requesting: http://10.0.0.154:8082/route-target/49e1c283-e61f-49eb-8054-e02bc7aba59c
2025-11-20 16:58:52,911 - DEBUG - Control-node 10.0.0.154 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-35979971:ctest-vn-89368000', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-35979971', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1779798571579689593', 'uuid-lslong': '9436616200694901511'}, 'enable': 'true', 'created': '2025-11-20T16:58:50', 'last-modified': '2025-11-20T16:58:51', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.630352'}
2025-11-20 16:58:52,916 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-20 16:58:52,916 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-89368000 passed
2025-11-20 16:58:52,916 - DEBUG - ====Verifying policy data for ctest-vn-89368000 in API_Server ======
2025-11-20 16:58:52,916 - DEBUG - Requesting: http://10.0.0.154:8082/domains
2025-11-20 16:58:52,920 - DEBUG - Requesting: http://10.0.0.154:8082/domain/53488b3d-1c95-41aa-8d92-27cb3d77be14
2025-11-20 16:58:52,928 - DEBUG - Requesting: http://10.0.0.154:8082/project/2bbd345a-6cb0-43a8-a483-5b199a1334b5
2025-11-20 16:58:52,996 - DEBUG - Requesting: http://10.0.0.154:8082/virtual-network/18b31d5e-fec1-4a79-82f5-986fec1dab07
2025-11-20 16:58:53,004 - DEBUG - ==>Verifying data for policy with id: 8ee8a927-0550-4609-94b9-969848f5a5c7, fqn: ['default-domain', 'ctest-TestBasicPolicy-35979971', 'ctest-policy-allow-all-48903666']
2025-11-20 16:58:53,004 - INFO - VN ctest-vn-89368000 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-20 16:58:53,004 - DEBUG - Verifying the vn in opserver
2025-11-20 16:58:53,004 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-35979971:ctest-vn-89368000 virtual network link through opserver 10.0.0.154
2025-11-20 16:58:53,004 - DEBUG - Requesting: http://10.0.0.154:8081/analytics/uves/virtual-networks
2025-11-20 16:58:53,013 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-35979971:ctest-vn-89368000', 'href': 'http://10.0.0.154:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-35979971:ctest-vn-89368000?flat'}
2025-11-20 16:58:53,013 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-35979971:ctest-vn-89368000 is found in opserver
2025-11-20 16:58:53,023 - DEBUG - Do not have enough data to verify VN in agent
2025-11-20 16:58:53,027 - DEBUG - VRF ids for VN ctest-vn-89368000: {}
2025-11-20 16:58:53,075 - DEBUG - Services list from nova: [