2025-09-15 02:02:10,277 - INFO - Domain Default found not creating
2025-09-15 02:02:10,423 - INFO - Project ctest-TestBasicPolicy-68130510 not found, creating it
2025-09-15 02:02:10,863 - INFO - Created Project:ctest-TestBasicPolicy-68130510, ID : 4b7770ad-8271-4cca-a84b-7feb8c38878a
2025-09-15 02:02:12,287 - INFO - ================================================================================
2025-09-15 02:02:12,287 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-09-15 02:02:12,288 - 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-09-15 02:02:12,543 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-09-15 02:02:12,543 - INFO - Initial checks done. Running the testcase now
2025-09-15 02:02:12,543 - INFO -
2025-09-15 02:02:13,614 - DEBUG - Response for create_network : {'network': {'id': '39053e39-13fd-49e4-b1ea-3deec03b831a', 'name': 'ctest-vn-64444486', 'tenant_id': '4b7770ad82714ccaa84b7feb8c38878a', 'project_id': '4b7770ad82714ccaa84b7feb8c38878a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68130510', 'ctest-vn-64444486'], 'port_security_enabled': True, 'description': ''}}
2025-09-15 02:02:13,772 - DEBUG - Response for create_subnet : {'subnet': {'id': '054bbee3-3caf-48f0-b6c9-693ac5e7fc72', 'name': '', 'tenant_id': '4b7770ad82714ccaa84b7feb8c38878a', 'network_id': '39053e39-13fd-49e4-b1ea-3deec03b831a', 'ip_version': 4, 'cidr': '20.240.237.64/26', 'allocation_pools': [{'start': '20.240.237.66', 'end': '20.240.237.126'}], 'gateway_ip': '20.240.237.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '20.240.237.66', 'tags': [], 'project_id': '4b7770ad82714ccaa84b7feb8c38878a'}}
2025-09-15 02:02:13,787 - INFO - Created VN ctest-vn-64444486
2025-09-15 02:02:13,837 - DEBUG - VN ctest-vn-64444486 UUID is 39053e39-13fd-49e4-b1ea-3deec03b831a
2025-09-15 02:02:14,137 - DEBUG - Response for create_network : {'network': {'id': '1b35559e-187e-44bc-aa7d-9fe886b95ba5', 'name': 'ctest-vn-39636267', 'tenant_id': '4b7770ad82714ccaa84b7feb8c38878a', 'project_id': '4b7770ad82714ccaa84b7feb8c38878a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68130510', 'ctest-vn-39636267'], 'port_security_enabled': True, 'description': ''}}
2025-09-15 02:02:14,312 - DEBUG - Response for create_subnet : {'subnet': {'id': '3b5392d6-6c77-4b32-8902-aefe938fd0d4', 'name': '', 'tenant_id': '4b7770ad82714ccaa84b7feb8c38878a', 'network_id': '1b35559e-187e-44bc-aa7d-9fe886b95ba5', 'ip_version': 4, 'cidr': '209.70.151.192/26', 'allocation_pools': [{'start': '209.70.151.194', 'end': '209.70.151.254'}], 'gateway_ip': '209.70.151.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '209.70.151.194', 'tags': [], 'project_id': '4b7770ad82714ccaa84b7feb8c38878a'}}
2025-09-15 02:02:14,328 - INFO - Created VN ctest-vn-39636267
2025-09-15 02:02:14,377 - DEBUG - VN ctest-vn-39636267 UUID is 1b35559e-187e-44bc-aa7d-9fe886b95ba5
2025-09-15 02:02:14,488 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-68130510:ctest-vn-64444486, 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-68130510:ctest-vn-39636267, 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-09-15 02:02:14,788 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '39053e39-13fd-49e4-b1ea-3deec03b831a', 'name': 'ctest-vn-64444486', 'tenant_id': '4b7770ad82714ccaa84b7feb8c38878a', 'project_id': '4b7770ad82714ccaa84b7feb8c38878a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['054bbee3-3caf-48f0-b6c9-693ac5e7fc72'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68130510', 'ctest-vn-64444486'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-68130510', 'ctest-policy-allow-all-98004502']], 'subnet_ipam': [{'subnet_cidr': '20.240.237.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-15 02:02:15,054 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1b35559e-187e-44bc-aa7d-9fe886b95ba5', 'name': 'ctest-vn-39636267', 'tenant_id': '4b7770ad82714ccaa84b7feb8c38878a', 'project_id': '4b7770ad82714ccaa84b7feb8c38878a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3b5392d6-6c77-4b32-8902-aefe938fd0d4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68130510', 'ctest-vn-39636267'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-68130510', 'ctest-policy-allow-all-98004502']], 'subnet_ipam': [{'subnet_cidr': '209.70.151.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-15 02:02:15,205 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-15 02:02:15,512 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-15 02:02:15,545 - DEBUG - Requesting: http://10.0.0.254:8082/domain/ac83a039-4cbb-4139-aca9-fb3f5fba8a51
2025-09-15 02:02:15,556 - DEBUG - Requesting: http://10.0.0.254:8082/project/4b7770ad-8271-4cca-a84b-7feb8c38878a
2025-09-15 02:02:15,628 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/39053e39-13fd-49e4-b1ea-3deec03b831a
2025-09-15 02:02:15,638 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/39053e39-13fd-49e4-b1ea-3deec03b831a
2025-09-15 02:02:15,648 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/003399f9-4ca6-4716-8dd9-da3c125a0251
2025-09-15 02:02:15,655 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/003399f9-4ca6-4716-8dd9-da3c125a0251
2025-09-15 02:02:15,661 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/efa90ae9-2a9a-41eb-83d2-3ff8dee3cfe2
2025-09-15 02:02:15,667 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-15 02:02:15,667 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/39053e39-13fd-49e4-b1ea-3deec03b831a
2025-09-15 02:02:15,675 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/003399f9-4ca6-4716-8dd9-da3c125a0251
2025-09-15 02:02:15,688 - INFO - Verified VN network id 12 for VN 39053e39-13fd-49e4-b1ea-3deec03b831a
2025-09-15 02:02:15,688 - INFO - Verifications in API Server for VN ctest-vn-64444486 passed
2025-09-15 02:02:15,688 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/39053e39-13fd-49e4-b1ea-3deec03b831a
2025-09-15 02:02:15,696 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/003399f9-4ca6-4716-8dd9-da3c125a0251
2025-09-15 02:02:15,705 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/003399f9-4ca6-4716-8dd9-da3c125a0251
2025-09-15 02:02:15,712 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/efa90ae9-2a9a-41eb-83d2-3ff8dee3cfe2
2025-09-15 02:02:15,723 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-68130510:ctest-vn-64444486', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-68130510', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4108758649914870244', 'uuid-lslong': '12820127384900174618'}, 'enable': 'true', 'created': '2025-09-15T02:02:13', 'last-modified': '2025-09-15T02:02:14', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.957500'}
2025-09-15 02:02:15,728 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-15 02:02:15,728 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-64444486 passed
2025-09-15 02:02:15,728 - DEBUG - ====Verifying policy data for ctest-vn-64444486 in API_Server ======
2025-09-15 02:02:15,728 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-15 02:02:15,733 - DEBUG - Requesting: http://10.0.0.254:8082/domain/ac83a039-4cbb-4139-aca9-fb3f5fba8a51
2025-09-15 02:02:15,743 - DEBUG - Requesting: http://10.0.0.254:8082/project/4b7770ad-8271-4cca-a84b-7feb8c38878a
2025-09-15 02:02:15,824 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/39053e39-13fd-49e4-b1ea-3deec03b831a
2025-09-15 02:02:15,834 - DEBUG - ==>Verifying data for policy with id: 6cd59b28-cf06-414f-ba76-cb35aa815b92, fqn: ['default-domain', 'ctest-TestBasicPolicy-68130510', 'ctest-policy-allow-all-98004502']
2025-09-15 02:02:15,834 - INFO - VN ctest-vn-64444486 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-15 02:02:15,834 - DEBUG - Verifying the vn in opserver
2025-09-15 02:02:15,834 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-68130510:ctest-vn-64444486 virtual network link through opserver 10.0.0.254
2025-09-15 02:02:15,834 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-09-15 02:02:16,124 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-09-15 02:02:16,173 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-68130510:ctest-vn-64444486', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-68130510:ctest-vn-64444486?flat'}
2025-09-15 02:02:16,173 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-68130510:ctest-vn-64444486 is found in opserver
2025-09-15 02:02:16,182 - DEBUG - Do not have enough data to verify VN in agent
2025-09-15 02:02:16,186 - DEBUG - VRF ids for VN ctest-vn-64444486: {}
2025-09-15 02:02:16,186 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-15 02:02:16,190 - DEBUG - Requesting: http://10.0.0.254:8082/domain/ac83a039-4cbb-4139-aca9-fb3f5fba8a51
2025-09-15 02:02:16,199 - DEBUG - Requesting: http://10.0.0.254:8082/project/4b7770ad-8271-4cca-a84b-7feb8c38878a
2025-09-15 02:02:16,269 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/1b35559e-187e-44bc-aa7d-9fe886b95ba5
2025-09-15 02:02:16,279 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/1b35559e-187e-44bc-aa7d-9fe886b95ba5
2025-09-15 02:02:16,288 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/fb44de38-ba40-4a6a-bbbb-adaa655e3243
2025-09-15 02:02:16,295 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/fb44de38-ba40-4a6a-bbbb-adaa655e3243
2025-09-15 02:02:16,301 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/dc744fdd-87cc-4b6d-9345-d8495b7f5f56
2025-09-15 02:02:16,307 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-15 02:02:16,307 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/1b35559e-187e-44bc-aa7d-9fe886b95ba5
2025-09-15 02:02:16,314 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/fb44de38-ba40-4a6a-bbbb-adaa655e3243
2025-09-15 02:02:16,327 - INFO - Verified VN network id 13 for VN 1b35559e-187e-44bc-aa7d-9fe886b95ba5
2025-09-15 02:02:16,327 - INFO - Verifications in API Server for VN ctest-vn-39636267 passed
2025-09-15 02:02:16,327 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/1b35559e-187e-44bc-aa7d-9fe886b95ba5
2025-09-15 02:02:16,334 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/fb44de38-ba40-4a6a-bbbb-adaa655e3243
2025-09-15 02:02:16,340 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/fb44de38-ba40-4a6a-bbbb-adaa655e3243
2025-09-15 02:02:16,346 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/dc744fdd-87cc-4b6d-9345-d8495b7f5f56
2025-09-15 02:02:16,357 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-68130510:ctest-vn-39636267', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-68130510', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1960567350293841084', 'uuid-lslong': '12285151179578104741'}, 'enable': 'true', 'created': '2025-09-15T02:02:14', 'last-modified': '2025-09-15T02:02:14', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.365257'}
2025-09-15 02:02:16,363 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-15 02:02:16,363 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-39636267 passed
2025-09-15 02:02:16,363 - DEBUG - ====Verifying policy data for ctest-vn-39636267 in API_Server ======
2025-09-15 02:02:16,363 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-15 02:02:16,368 - DEBUG - Requesting: http://10.0.0.254:8082/domain/ac83a039-4cbb-4139-aca9-fb3f5fba8a51
2025-09-15 02:02:16,377 - DEBUG - Requesting: http://10.0.0.254:8082/project/4b7770ad-8271-4cca-a84b-7feb8c38878a
2025-09-15 02:02:16,453 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/1b35559e-187e-44bc-aa7d-9fe886b95ba5
2025-09-15 02:02:16,461 - DEBUG - ==>Verifying data for policy with id: 6cd59b28-cf06-414f-ba76-cb35aa815b92, fqn: ['default-domain', 'ctest-TestBasicPolicy-68130510', 'ctest-policy-allow-all-98004502']
2025-09-15 02:02:16,461 - INFO - VN ctest-vn-39636267 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-15 02:02:16,461 - DEBUG - Verifying the vn in opserver
2025-09-15 02:02:16,461 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-68130510:ctest-vn-39636267 virtual network link through opserver 10.0.0.254
2025-09-15 02:02:16,461 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-09-15 02:02:16,475 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-68130510:ctest-vn-39636267', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-68130510:ctest-vn-39636267?flat'}
2025-09-15 02:02:16,476 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-68130510:ctest-vn-39636267 is found in opserver
2025-09-15 02:02:16,488 - DEBUG - Do not have enough data to verify VN in agent
2025-09-15 02:02:16,492 - DEBUG - VRF ids for VN ctest-vn-39636267: {}
2025-09-15 02:02:16,543 - DEBUG - Services list from nova: [