2025-11-02 16:26:03,411 - INFO - Domain Default found not creating
2025-11-02 16:26:03,553 - INFO - Project ctest-TestBasicPolicy-81182346 not found, creating it
2025-11-02 16:26:04,012 - INFO - Created Project:ctest-TestBasicPolicy-81182346, ID : dd9710d8-7556-4f37-a25c-e0085b9e4337
2025-11-02 16:26:05,535 - INFO - ================================================================================
2025-11-02 16:26:05,535 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-02 16:26:05,535 - 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-02 16:26:05,793 - DEBUG - Nothing to compare xmpp stats {'10.0.0.48': {'10.20.0.17': '0'}} with
2025-11-02 16:26:05,793 - INFO - Initial checks done. Running the testcase now
2025-11-02 16:26:05,793 - INFO -
2025-11-02 16:26:06,376 - DEBUG - Response for create_network : {'network': {'id': '92bd02d0-1c6e-4322-a663-5056b5cca900', 'name': 'ctest-vn-39699310', 'tenant_id': 'dd9710d875564f37a25ce0085b9e4337', 'project_id': 'dd9710d875564f37a25ce0085b9e4337', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-81182346', 'ctest-vn-39699310'], 'port_security_enabled': True, 'description': ''}}
2025-11-02 16:26:06,564 - DEBUG - Response for create_subnet : {'subnet': {'id': '7d5e49f4-2eb5-4dad-bef6-87dd5e5d7695', 'name': '', 'tenant_id': 'dd9710d875564f37a25ce0085b9e4337', 'network_id': '92bd02d0-1c6e-4322-a663-5056b5cca900', 'ip_version': 4, 'cidr': '173.236.181.192/26', 'allocation_pools': [{'start': '173.236.181.194', 'end': '173.236.181.254'}], 'gateway_ip': '173.236.181.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '173.236.181.194', 'tags': [], 'project_id': 'dd9710d875564f37a25ce0085b9e4337'}}
2025-11-02 16:26:06,584 - INFO - Created VN ctest-vn-39699310
2025-11-02 16:26:06,636 - DEBUG - VN ctest-vn-39699310 UUID is 92bd02d0-1c6e-4322-a663-5056b5cca900
2025-11-02 16:26:06,924 - DEBUG - Response for create_network : {'network': {'id': '8408c415-befc-449c-a326-c59469ad38d5', 'name': 'ctest-vn-60872513', 'tenant_id': 'dd9710d875564f37a25ce0085b9e4337', 'project_id': 'dd9710d875564f37a25ce0085b9e4337', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-81182346', 'ctest-vn-60872513'], 'port_security_enabled': True, 'description': ''}}
2025-11-02 16:26:07,098 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fc8d8e95-d1df-415b-a14f-975aa8ea6a03', 'name': '', 'tenant_id': 'dd9710d875564f37a25ce0085b9e4337', 'network_id': '8408c415-befc-449c-a326-c59469ad38d5', 'ip_version': 4, 'cidr': '42.111.67.64/26', 'allocation_pools': [{'start': '42.111.67.66', 'end': '42.111.67.126'}], 'gateway_ip': '42.111.67.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '42.111.67.66', 'tags': [], 'project_id': 'dd9710d875564f37a25ce0085b9e4337'}}
2025-11-02 16:26:07,116 - INFO - Created VN ctest-vn-60872513
2025-11-02 16:26:07,172 - DEBUG - VN ctest-vn-60872513 UUID is 8408c415-befc-449c-a326-c59469ad38d5
2025-11-02 16:26:07,288 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-81182346:ctest-vn-39699310, 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-81182346:ctest-vn-60872513, 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-02 16:26:07,581 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '92bd02d0-1c6e-4322-a663-5056b5cca900', 'name': 'ctest-vn-39699310', 'tenant_id': 'dd9710d875564f37a25ce0085b9e4337', 'project_id': 'dd9710d875564f37a25ce0085b9e4337', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7d5e49f4-2eb5-4dad-bef6-87dd5e5d7695'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-81182346', 'ctest-vn-39699310'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-81182346', 'ctest-policy-allow-all-55765642']], 'subnet_ipam': [{'subnet_cidr': '173.236.181.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-02 16:26:07,807 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8408c415-befc-449c-a326-c59469ad38d5', 'name': 'ctest-vn-60872513', 'tenant_id': 'dd9710d875564f37a25ce0085b9e4337', 'project_id': 'dd9710d875564f37a25ce0085b9e4337', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['fc8d8e95-d1df-415b-a14f-975aa8ea6a03'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-81182346', 'ctest-vn-60872513'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-81182346', 'ctest-policy-allow-all-55765642']], 'subnet_ipam': [{'subnet_cidr': '42.111.67.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-02 16:26:07,984 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-11-02 16:26:08,316 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-11-02 16:26:08,345 - DEBUG - Requesting: http://10.0.0.48:8082/domain/b1118436-1b87-42aa-8ee9-d27497dd1d27
2025-11-02 16:26:08,357 - DEBUG - Requesting: http://10.0.0.48:8082/project/dd9710d8-7556-4f37-a25c-e0085b9e4337
2025-11-02 16:26:08,442 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/92bd02d0-1c6e-4322-a663-5056b5cca900
2025-11-02 16:26:08,456 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/92bd02d0-1c6e-4322-a663-5056b5cca900
2025-11-02 16:26:08,468 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/9fe829c0-1653-4989-be7f-5d0bcdb4065f
2025-11-02 16:26:08,477 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/9fe829c0-1653-4989-be7f-5d0bcdb4065f
2025-11-02 16:26:08,487 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/930a2c04-9d8f-40ab-b24a-63a0b139108f
2025-11-02 16:26:08,495 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-02 16:26:08,495 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/92bd02d0-1c6e-4322-a663-5056b5cca900
2025-11-02 16:26:08,508 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/9fe829c0-1653-4989-be7f-5d0bcdb4065f
2025-11-02 16:26:08,524 - INFO - Verified VN network id 11 for VN 92bd02d0-1c6e-4322-a663-5056b5cca900
2025-11-02 16:26:08,524 - INFO - Verifications in API Server for VN ctest-vn-39699310 passed
2025-11-02 16:26:08,525 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/92bd02d0-1c6e-4322-a663-5056b5cca900
2025-11-02 16:26:08,534 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/9fe829c0-1653-4989-be7f-5d0bcdb4065f
2025-11-02 16:26:08,541 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/9fe829c0-1653-4989-be7f-5d0bcdb4065f
2025-11-02 16:26:08,548 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/930a2c04-9d8f-40ab-b24a-63a0b139108f
2025-11-02 16:26:08,559 - DEBUG - Control-node 10.0.0.48 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-81182346:ctest-vn-39699310', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-81182346', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10573610592989233954', 'uuid-lslong': '11989514966337890560'}, 'enable': 'true', 'created': '2025-11-02T16:26:06', 'last-modified': '2025-11-02T16:26:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.000007'}
2025-11-02 16:26:08,565 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-02 16:26:08,566 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-39699310 passed
2025-11-02 16:26:08,566 - DEBUG - ====Verifying policy data for ctest-vn-39699310 in API_Server ======
2025-11-02 16:26:08,566 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-11-02 16:26:08,572 - DEBUG - Requesting: http://10.0.0.48:8082/domain/b1118436-1b87-42aa-8ee9-d27497dd1d27
2025-11-02 16:26:08,583 - DEBUG - Requesting: http://10.0.0.48:8082/project/dd9710d8-7556-4f37-a25c-e0085b9e4337
2025-11-02 16:26:08,655 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/92bd02d0-1c6e-4322-a663-5056b5cca900
2025-11-02 16:26:08,666 - DEBUG - ==>Verifying data for policy with id: d20de32f-b793-4bb8-9991-fedeee90d856, fqn: ['default-domain', 'ctest-TestBasicPolicy-81182346', 'ctest-policy-allow-all-55765642']
2025-11-02 16:26:08,667 - INFO - VN ctest-vn-39699310 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-02 16:26:08,667 - DEBUG - Verifying the vn in opserver
2025-11-02 16:26:08,667 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-81182346:ctest-vn-39699310 virtual network link through opserver 10.0.0.48
2025-11-02 16:26:08,667 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks
2025-11-02 16:26:09,001 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks
2025-11-02 16:26:09,059 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-81182346:ctest-vn-39699310', 'href': 'http://10.0.0.48:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-81182346:ctest-vn-39699310?flat'}
2025-11-02 16:26:09,059 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-81182346:ctest-vn-39699310 is found in opserver
2025-11-02 16:26:09,068 - DEBUG - Do not have enough data to verify VN in agent
2025-11-02 16:26:09,072 - DEBUG - VRF ids for VN ctest-vn-39699310: {}
2025-11-02 16:26:09,072 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-11-02 16:26:09,077 - DEBUG - Requesting: http://10.0.0.48:8082/domain/b1118436-1b87-42aa-8ee9-d27497dd1d27
2025-11-02 16:26:09,088 - DEBUG - Requesting: http://10.0.0.48:8082/project/dd9710d8-7556-4f37-a25c-e0085b9e4337
2025-11-02 16:26:09,159 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/8408c415-befc-449c-a326-c59469ad38d5
2025-11-02 16:26:09,171 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/8408c415-befc-449c-a326-c59469ad38d5
2025-11-02 16:26:09,181 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/f3c6c81a-8140-4d01-b846-3bcb58b10cb8
2025-11-02 16:26:09,187 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/f3c6c81a-8140-4d01-b846-3bcb58b10cb8
2025-11-02 16:26:09,193 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/0b9bd2f9-a345-42c4-b482-2d7b053228fc
2025-11-02 16:26:09,198 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-02 16:26:09,198 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/8408c415-befc-449c-a326-c59469ad38d5
2025-11-02 16:26:09,206 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/f3c6c81a-8140-4d01-b846-3bcb58b10cb8
2025-11-02 16:26:09,217 - INFO - Verified VN network id 12 for VN 8408c415-befc-449c-a326-c59469ad38d5
2025-11-02 16:26:09,217 - INFO - Verifications in API Server for VN ctest-vn-60872513 passed
2025-11-02 16:26:09,217 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/8408c415-befc-449c-a326-c59469ad38d5
2025-11-02 16:26:09,225 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/f3c6c81a-8140-4d01-b846-3bcb58b10cb8
2025-11-02 16:26:09,231 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/f3c6c81a-8140-4d01-b846-3bcb58b10cb8
2025-11-02 16:26:09,237 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/0b9bd2f9-a345-42c4-b482-2d7b053228fc
2025-11-02 16:26:09,247 - DEBUG - Control-node 10.0.0.48 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-81182346:ctest-vn-60872513', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-81182346', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9514069810497733788', 'uuid-lslong': '11756301118516050133'}, 'enable': 'true', 'created': '2025-11-02T16:26:06', 'last-modified': '2025-11-02T16:26:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.454791'}
2025-11-02 16:26:09,252 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-02 16:26:09,252 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-60872513 passed
2025-11-02 16:26:09,252 - DEBUG - ====Verifying policy data for ctest-vn-60872513 in API_Server ======
2025-11-02 16:26:09,252 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-11-02 16:26:09,257 - DEBUG - Requesting: http://10.0.0.48:8082/domain/b1118436-1b87-42aa-8ee9-d27497dd1d27
2025-11-02 16:26:09,269 - DEBUG - Requesting: http://10.0.0.48:8082/project/dd9710d8-7556-4f37-a25c-e0085b9e4337
2025-11-02 16:26:09,337 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/8408c415-befc-449c-a326-c59469ad38d5
2025-11-02 16:26:09,346 - DEBUG - ==>Verifying data for policy with id: d20de32f-b793-4bb8-9991-fedeee90d856, fqn: ['default-domain', 'ctest-TestBasicPolicy-81182346', 'ctest-policy-allow-all-55765642']
2025-11-02 16:26:09,346 - INFO - VN ctest-vn-60872513 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-02 16:26:09,346 - DEBUG - Verifying the vn in opserver
2025-11-02 16:26:09,346 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-81182346:ctest-vn-60872513 virtual network link through opserver 10.0.0.48
2025-11-02 16:26:09,346 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks
2025-11-02 16:26:09,355 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-81182346:ctest-vn-60872513', 'href': 'http://10.0.0.48:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-81182346:ctest-vn-60872513?flat'}
2025-11-02 16:26:09,356 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-81182346:ctest-vn-60872513 is found in opserver
2025-11-02 16:26:09,366 - DEBUG - Do not have enough data to verify VN in agent
2025-11-02 16:26:09,370 - DEBUG - VRF ids for VN ctest-vn-60872513: {}
2025-11-02 16:26:09,431 - DEBUG - Services list from nova: [