2026-02-02 16:52:42,134 - INFO - Domain Default found not creating
2026-02-02 16:52:42,318 - INFO - Project ctest-TestBasicPolicy-61569418 not found, creating it
2026-02-02 16:52:42,774 - INFO - Created Project:ctest-TestBasicPolicy-61569418, ID : 0a61b0ab-7914-4d91-b99b-d3ca1ff53c80
2026-02-02 16:52:44,217 - INFO - ================================================================================
2026-02-02 16:52:44,218 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-02-02 16:52:44,218 - 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
2026-02-02 16:52:44,472 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with
2026-02-02 16:52:44,472 - INFO - Initial checks done. Running the testcase now
2026-02-02 16:52:44,472 - INFO -
2026-02-02 16:52:45,008 - DEBUG - Response for create_network : {'network': {'id': 'ccc513b9-9097-44fe-80f3-4a4b2e8dc9ff', 'name': 'ctest-vn-37518416', 'tenant_id': '0a61b0ab79144d91b99bd3ca1ff53c80', 'project_id': '0a61b0ab79144d91b99bd3ca1ff53c80', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61569418', 'ctest-vn-37518416'], 'port_security_enabled': True, 'description': ''}}
2026-02-02 16:52:45,192 - DEBUG - Response for create_subnet : {'subnet': {'id': '5c920ec1-21bd-4d4c-97db-d4b9a042eb5f', 'name': '', 'tenant_id': '0a61b0ab79144d91b99bd3ca1ff53c80', 'network_id': 'ccc513b9-9097-44fe-80f3-4a4b2e8dc9ff', 'ip_version': 4, 'cidr': '108.64.230.128/26', 'allocation_pools': [{'start': '108.64.230.130', 'end': '108.64.230.190'}], 'gateway_ip': '108.64.230.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '108.64.230.130', 'tags': [], 'project_id': '0a61b0ab79144d91b99bd3ca1ff53c80'}}
2026-02-02 16:52:45,208 - INFO - Created VN ctest-vn-37518416
2026-02-02 16:52:45,259 - DEBUG - VN ctest-vn-37518416 UUID is ccc513b9-9097-44fe-80f3-4a4b2e8dc9ff
2026-02-02 16:52:45,558 - DEBUG - Response for create_network : {'network': {'id': 'e4546398-bf2d-49c0-ab1f-c17f2eb00f45', 'name': 'ctest-vn-57557351', 'tenant_id': '0a61b0ab79144d91b99bd3ca1ff53c80', 'project_id': '0a61b0ab79144d91b99bd3ca1ff53c80', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61569418', 'ctest-vn-57557351'], 'port_security_enabled': True, 'description': ''}}
2026-02-02 16:52:45,700 - DEBUG - Response for create_subnet : {'subnet': {'id': '27c1bd81-121e-41a8-8417-4fc2b01a19b1', 'name': '', 'tenant_id': '0a61b0ab79144d91b99bd3ca1ff53c80', 'network_id': 'e4546398-bf2d-49c0-ab1f-c17f2eb00f45', 'ip_version': 4, 'cidr': '177.90.129.64/26', 'allocation_pools': [{'start': '177.90.129.66', 'end': '177.90.129.126'}], 'gateway_ip': '177.90.129.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '177.90.129.66', 'tags': [], 'project_id': '0a61b0ab79144d91b99bd3ca1ff53c80'}}
2026-02-02 16:52:45,717 - INFO - Created VN ctest-vn-57557351
2026-02-02 16:52:45,767 - DEBUG - VN ctest-vn-57557351 UUID is e4546398-bf2d-49c0-ab1f-c17f2eb00f45
2026-02-02 16:52:45,923 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-61569418:ctest-vn-37518416, 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-61569418:ctest-vn-57557351, 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]
2026-02-02 16:52:46,203 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ccc513b9-9097-44fe-80f3-4a4b2e8dc9ff', 'name': 'ctest-vn-37518416', 'tenant_id': '0a61b0ab79144d91b99bd3ca1ff53c80', 'project_id': '0a61b0ab79144d91b99bd3ca1ff53c80', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5c920ec1-21bd-4d4c-97db-d4b9a042eb5f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61569418', 'ctest-vn-37518416'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-61569418', 'ctest-policy-allow-all-15827269']], 'subnet_ipam': [{'subnet_cidr': '108.64.230.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-02-02 16:52:46,417 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e4546398-bf2d-49c0-ab1f-c17f2eb00f45', 'name': 'ctest-vn-57557351', 'tenant_id': '0a61b0ab79144d91b99bd3ca1ff53c80', 'project_id': '0a61b0ab79144d91b99bd3ca1ff53c80', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['27c1bd81-121e-41a8-8417-4fc2b01a19b1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61569418', 'ctest-vn-57557351'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-61569418', 'ctest-policy-allow-all-15827269']], 'subnet_ipam': [{'subnet_cidr': '177.90.129.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-02-02 16:52:46,584 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-02-02 16:52:46,881 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-02-02 16:52:46,914 - DEBUG - Requesting: http://10.0.0.38:8082/domain/cad9a506-2f0b-4656-8997-c3b8e9881859
2026-02-02 16:52:46,924 - DEBUG - Requesting: http://10.0.0.38:8082/project/0a61b0ab-7914-4d91-b99b-d3ca1ff53c80
2026-02-02 16:52:46,991 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ccc513b9-9097-44fe-80f3-4a4b2e8dc9ff
2026-02-02 16:52:47,001 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ccc513b9-9097-44fe-80f3-4a4b2e8dc9ff
2026-02-02 16:52:47,009 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9ea082b6-df2d-4764-afa2-2eaae8dfef46
2026-02-02 16:52:47,015 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9ea082b6-df2d-4764-afa2-2eaae8dfef46
2026-02-02 16:52:47,022 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/91f0f96c-8197-4f3e-9250-b13b5df6d2e3
2026-02-02 16:52:47,028 - DEBUG - Route Targets: ['target:64512:8000004']
2026-02-02 16:52:47,028 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ccc513b9-9097-44fe-80f3-4a4b2e8dc9ff
2026-02-02 16:52:47,036 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9ea082b6-df2d-4764-afa2-2eaae8dfef46
2026-02-02 16:52:47,048 - INFO - Verified VN network id 11 for VN ccc513b9-9097-44fe-80f3-4a4b2e8dc9ff
2026-02-02 16:52:47,049 - INFO - Verifications in API Server for VN ctest-vn-37518416 passed
2026-02-02 16:52:47,049 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ccc513b9-9097-44fe-80f3-4a4b2e8dc9ff
2026-02-02 16:52:47,056 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9ea082b6-df2d-4764-afa2-2eaae8dfef46
2026-02-02 16:52:47,063 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9ea082b6-df2d-4764-afa2-2eaae8dfef46
2026-02-02 16:52:47,070 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/91f0f96c-8197-4f3e-9250-b13b5df6d2e3
2026-02-02 16:52:47,080 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-61569418:ctest-vn-37518416', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-61569418', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14755221441865008382', 'uuid-lslong': '9291852142959512063'}, 'enable': 'true', 'created': '2026-02-02T16:52:44', 'last-modified': '2026-02-02T16:52:46', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.894593'}
2026-02-02 16:52:47,085 - DEBUG - Route Targets: ['target:64512:8000004']
2026-02-02 16:52:47,085 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-37518416 passed
2026-02-02 16:52:47,086 - DEBUG - ====Verifying policy data for ctest-vn-37518416 in API_Server ======
2026-02-02 16:52:47,086 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-02-02 16:52:47,091 - DEBUG - Requesting: http://10.0.0.38:8082/domain/cad9a506-2f0b-4656-8997-c3b8e9881859
2026-02-02 16:52:47,111 - DEBUG - Requesting: http://10.0.0.38:8082/project/0a61b0ab-7914-4d91-b99b-d3ca1ff53c80
2026-02-02 16:52:47,178 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ccc513b9-9097-44fe-80f3-4a4b2e8dc9ff
2026-02-02 16:52:47,187 - DEBUG - ==>Verifying data for policy with id: c32b4dda-73f8-498a-9179-359cd9123912, fqn: ['default-domain', 'ctest-TestBasicPolicy-61569418', 'ctest-policy-allow-all-15827269']
2026-02-02 16:52:47,187 - INFO - VN ctest-vn-37518416 Policy verification: verify_vn_policy_in_api_server, status: True
2026-02-02 16:52:47,187 - DEBUG - Verifying the vn in opserver
2026-02-02 16:52:47,187 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-61569418:ctest-vn-37518416 virtual network link through opserver 10.0.0.38
2026-02-02 16:52:47,187 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-02-02 16:52:47,476 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-02-02 16:52:47,534 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-61569418:ctest-vn-37518416', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-61569418:ctest-vn-37518416?flat'}
2026-02-02 16:52:47,534 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-61569418:ctest-vn-37518416 is found in opserver
2026-02-02 16:52:47,542 - DEBUG - Do not have enough data to verify VN in agent
2026-02-02 16:52:47,546 - DEBUG - VRF ids for VN ctest-vn-37518416: {}
2026-02-02 16:52:47,546 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-02-02 16:52:47,551 - DEBUG - Requesting: http://10.0.0.38:8082/domain/cad9a506-2f0b-4656-8997-c3b8e9881859
2026-02-02 16:52:47,561 - DEBUG - Requesting: http://10.0.0.38:8082/project/0a61b0ab-7914-4d91-b99b-d3ca1ff53c80
2026-02-02 16:52:47,629 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e4546398-bf2d-49c0-ab1f-c17f2eb00f45
2026-02-02 16:52:47,640 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e4546398-bf2d-49c0-ab1f-c17f2eb00f45
2026-02-02 16:52:47,649 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/bc49efd1-5352-4bb4-8eec-66fefe803f0a
2026-02-02 16:52:47,655 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/bc49efd1-5352-4bb4-8eec-66fefe803f0a
2026-02-02 16:52:47,661 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/06bdee38-5056-4f9d-8fe6-ff55560b8f74
2026-02-02 16:52:47,668 - DEBUG - Route Targets: ['target:64512:8000005']
2026-02-02 16:52:47,668 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e4546398-bf2d-49c0-ab1f-c17f2eb00f45
2026-02-02 16:52:47,675 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/bc49efd1-5352-4bb4-8eec-66fefe803f0a
2026-02-02 16:52:47,687 - INFO - Verified VN network id 12 for VN e4546398-bf2d-49c0-ab1f-c17f2eb00f45
2026-02-02 16:52:47,687 - INFO - Verifications in API Server for VN ctest-vn-57557351 passed
2026-02-02 16:52:47,687 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e4546398-bf2d-49c0-ab1f-c17f2eb00f45
2026-02-02 16:52:47,695 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/bc49efd1-5352-4bb4-8eec-66fefe803f0a
2026-02-02 16:52:47,701 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/bc49efd1-5352-4bb4-8eec-66fefe803f0a
2026-02-02 16:52:47,707 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/06bdee38-5056-4f9d-8fe6-ff55560b8f74
2026-02-02 16:52:47,718 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-61569418:ctest-vn-57557351', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-61569418', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16452884846384859584', 'uuid-lslong': '12330787056752004933'}, 'enable': 'true', 'created': '2026-02-02T16:52:45', 'last-modified': '2026-02-02T16:52:46', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.318197'}
2026-02-02 16:52:47,723 - DEBUG - Route Targets: ['target:64512:8000005']
2026-02-02 16:52:47,723 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-57557351 passed
2026-02-02 16:52:47,724 - DEBUG - ====Verifying policy data for ctest-vn-57557351 in API_Server ======
2026-02-02 16:52:47,724 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-02-02 16:52:47,735 - DEBUG - Requesting: http://10.0.0.38:8082/domain/cad9a506-2f0b-4656-8997-c3b8e9881859
2026-02-02 16:52:47,744 - DEBUG - Requesting: http://10.0.0.38:8082/project/0a61b0ab-7914-4d91-b99b-d3ca1ff53c80
2026-02-02 16:52:47,813 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e4546398-bf2d-49c0-ab1f-c17f2eb00f45
2026-02-02 16:52:47,821 - DEBUG - ==>Verifying data for policy with id: c32b4dda-73f8-498a-9179-359cd9123912, fqn: ['default-domain', 'ctest-TestBasicPolicy-61569418', 'ctest-policy-allow-all-15827269']
2026-02-02 16:52:47,821 - INFO - VN ctest-vn-57557351 Policy verification: verify_vn_policy_in_api_server, status: True
2026-02-02 16:52:47,821 - DEBUG - Verifying the vn in opserver
2026-02-02 16:52:47,821 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-61569418:ctest-vn-57557351 virtual network link through opserver 10.0.0.38
2026-02-02 16:52:47,821 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-02-02 16:52:47,830 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-61569418:ctest-vn-57557351', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-61569418:ctest-vn-57557351?flat'}
2026-02-02 16:52:47,830 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-61569418:ctest-vn-57557351 is found in opserver
2026-02-02 16:52:47,840 - DEBUG - Do not have enough data to verify VN in agent
2026-02-02 16:52:47,845 - DEBUG - VRF ids for VN ctest-vn-57557351: {}
2026-02-02 16:52:47,899 - DEBUG - Services list from nova: [