2025-08-12 15:59:44,943 - INFO - Domain Default found not creating
2025-08-12 15:59:45,065 - INFO - Project ctest-TestBasicPolicy-30460160 not found, creating it
2025-08-12 15:59:45,531 - INFO - Created Project:ctest-TestBasicPolicy-30460160, ID : 0d890ee7-82d4-48e6-bfd2-2d8708c20f58
2025-08-12 15:59:46,872 - INFO - ================================================================================
2025-08-12 15:59:46,872 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-12 15:59:46,872 - 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-08-12 15:59:47,123 - DEBUG - Nothing to compare xmpp stats {'10.0.0.133': {'10.20.0.17': '0'}} with
2025-08-12 15:59:47,123 - INFO - Initial checks done. Running the testcase now
2025-08-12 15:59:47,123 - INFO -
2025-08-12 15:59:47,623 - DEBUG - Response for create_network : {'network': {'id': '9e8dd9bd-008e-4f2a-b20f-2d58785070a1', 'name': 'ctest-vn-58682922', 'tenant_id': '0d890ee782d448e6bfd22d8708c20f58', 'project_id': '0d890ee782d448e6bfd22d8708c20f58', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-30460160', 'ctest-vn-58682922'], 'port_security_enabled': True, 'description': ''}}
2025-08-12 15:59:47,823 - DEBUG - Response for create_subnet : {'subnet': {'id': '6f931b45-68d1-4f83-b136-3e008c1edd2b', 'name': '', 'tenant_id': '0d890ee782d448e6bfd22d8708c20f58', 'network_id': '9e8dd9bd-008e-4f2a-b20f-2d58785070a1', 'ip_version': 4, 'cidr': '193.52.190.128/26', 'allocation_pools': [{'start': '193.52.190.130', 'end': '193.52.190.190'}], 'gateway_ip': '193.52.190.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '193.52.190.130', 'tags': [], 'project_id': '0d890ee782d448e6bfd22d8708c20f58'}}
2025-08-12 15:59:47,840 - INFO - Created VN ctest-vn-58682922
2025-08-12 15:59:47,890 - DEBUG - VN ctest-vn-58682922 UUID is 9e8dd9bd-008e-4f2a-b20f-2d58785070a1
2025-08-12 15:59:48,173 - DEBUG - Response for create_network : {'network': {'id': '390325f7-55df-4abb-90d5-261511f2c1a8', 'name': 'ctest-vn-58688225', 'tenant_id': '0d890ee782d448e6bfd22d8708c20f58', 'project_id': '0d890ee782d448e6bfd22d8708c20f58', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-30460160', 'ctest-vn-58688225'], 'port_security_enabled': True, 'description': ''}}
2025-08-12 15:59:48,335 - DEBUG - Response for create_subnet : {'subnet': {'id': '846b4f1a-0b2d-4b37-a0b9-ed05815388ff', 'name': '', 'tenant_id': '0d890ee782d448e6bfd22d8708c20f58', 'network_id': '390325f7-55df-4abb-90d5-261511f2c1a8', 'ip_version': 4, 'cidr': '16.92.91.0/26', 'allocation_pools': [{'start': '16.92.91.2', 'end': '16.92.91.62'}], 'gateway_ip': '16.92.91.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '16.92.91.2', 'tags': [], 'project_id': '0d890ee782d448e6bfd22d8708c20f58'}}
2025-08-12 15:59:48,349 - INFO - Created VN ctest-vn-58688225
2025-08-12 15:59:48,406 - DEBUG - VN ctest-vn-58688225 UUID is 390325f7-55df-4abb-90d5-261511f2c1a8
2025-08-12 15:59:48,542 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-30460160:ctest-vn-58682922, 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-30460160:ctest-vn-58688225, 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-08-12 15:59:48,811 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9e8dd9bd-008e-4f2a-b20f-2d58785070a1', 'name': 'ctest-vn-58682922', 'tenant_id': '0d890ee782d448e6bfd22d8708c20f58', 'project_id': '0d890ee782d448e6bfd22d8708c20f58', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6f931b45-68d1-4f83-b136-3e008c1edd2b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-30460160', 'ctest-vn-58682922'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-30460160', 'ctest-policy-allow-all-53971570']], 'subnet_ipam': [{'subnet_cidr': '193.52.190.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-12 15:59:49,031 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '390325f7-55df-4abb-90d5-261511f2c1a8', 'name': 'ctest-vn-58688225', 'tenant_id': '0d890ee782d448e6bfd22d8708c20f58', 'project_id': '0d890ee782d448e6bfd22d8708c20f58', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['846b4f1a-0b2d-4b37-a0b9-ed05815388ff'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-30460160', 'ctest-vn-58688225'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-30460160', 'ctest-policy-allow-all-53971570']], 'subnet_ipam': [{'subnet_cidr': '16.92.91.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-12 15:59:49,202 - DEBUG - Requesting: http://10.0.0.133:8082/domains
2025-08-12 15:59:49,488 - DEBUG - Requesting: http://10.0.0.133:8082/domains
2025-08-12 15:59:49,511 - DEBUG - Requesting: http://10.0.0.133:8082/domain/51a8d18b-6947-4111-b900-4e4b82af27cc
2025-08-12 15:59:49,522 - DEBUG - Requesting: http://10.0.0.133:8082/project/0d890ee7-82d4-48e6-bfd2-2d8708c20f58
2025-08-12 15:59:49,591 - DEBUG - Requesting: http://10.0.0.133:8082/virtual-network/9e8dd9bd-008e-4f2a-b20f-2d58785070a1
2025-08-12 15:59:49,601 - DEBUG - Requesting: http://10.0.0.133:8082/virtual-network/9e8dd9bd-008e-4f2a-b20f-2d58785070a1
2025-08-12 15:59:49,609 - DEBUG - Requesting: http://10.0.0.133:8082/routing-instance/7aed3314-85fc-4510-9530-5cae8871adf8
2025-08-12 15:59:49,615 - DEBUG - Requesting: http://10.0.0.133:8082/routing-instance/7aed3314-85fc-4510-9530-5cae8871adf8
2025-08-12 15:59:49,620 - DEBUG - Requesting: http://10.0.0.133:8082/route-target/8a1fe727-1189-4abd-9edc-933deb9b4cfe
2025-08-12 15:59:49,626 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-12 15:59:49,626 - DEBUG - Requesting: http://10.0.0.133:8082/virtual-network/9e8dd9bd-008e-4f2a-b20f-2d58785070a1
2025-08-12 15:59:49,634 - DEBUG - Requesting: http://10.0.0.133:8082/routing-instance/7aed3314-85fc-4510-9530-5cae8871adf8
2025-08-12 15:59:49,646 - INFO - Verified VN network id 11 for VN 9e8dd9bd-008e-4f2a-b20f-2d58785070a1
2025-08-12 15:59:49,646 - INFO - Verifications in API Server for VN ctest-vn-58682922 passed
2025-08-12 15:59:49,646 - DEBUG - Requesting: http://10.0.0.133:8082/virtual-network/9e8dd9bd-008e-4f2a-b20f-2d58785070a1
2025-08-12 15:59:49,654 - DEBUG - Requesting: http://10.0.0.133:8082/routing-instance/7aed3314-85fc-4510-9530-5cae8871adf8
2025-08-12 15:59:49,660 - DEBUG - Requesting: http://10.0.0.133:8082/routing-instance/7aed3314-85fc-4510-9530-5cae8871adf8
2025-08-12 15:59:49,666 - DEBUG - Requesting: http://10.0.0.133:8082/route-target/8a1fe727-1189-4abd-9edc-933deb9b4cfe
2025-08-12 15:59:49,676 - DEBUG - Control-node 10.0.0.133 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-30460160:ctest-vn-58682922', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-30460160', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11425027235490189098', 'uuid-lslong': '12830523721400742049'}, 'enable': 'true', 'created': '2025-08-12T15:59:47', 'last-modified': '2025-08-12T15:59:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.881810'}
2025-08-12 15:59:49,682 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-12 15:59:49,682 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-58682922 passed
2025-08-12 15:59:49,682 - DEBUG - ====Verifying policy data for ctest-vn-58682922 in API_Server ======
2025-08-12 15:59:49,682 - DEBUG - Requesting: http://10.0.0.133:8082/domains
2025-08-12 15:59:49,686 - DEBUG - Requesting: http://10.0.0.133:8082/domain/51a8d18b-6947-4111-b900-4e4b82af27cc
2025-08-12 15:59:49,696 - DEBUG - Requesting: http://10.0.0.133:8082/project/0d890ee7-82d4-48e6-bfd2-2d8708c20f58
2025-08-12 15:59:49,762 - DEBUG - Requesting: http://10.0.0.133:8082/virtual-network/9e8dd9bd-008e-4f2a-b20f-2d58785070a1
2025-08-12 15:59:49,771 - DEBUG - ==>Verifying data for policy with id: a1ba0c13-b2d4-4264-8726-d11f534c44ce, fqn: ['default-domain', 'ctest-TestBasicPolicy-30460160', 'ctest-policy-allow-all-53971570']
2025-08-12 15:59:49,771 - INFO - VN ctest-vn-58682922 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-12 15:59:49,771 - DEBUG - Verifying the vn in opserver
2025-08-12 15:59:49,771 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-30460160:ctest-vn-58682922 virtual network link through opserver 10.0.0.133
2025-08-12 15:59:49,771 - DEBUG - Requesting: http://10.0.0.133:8081/analytics/uves/virtual-networks
2025-08-12 15:59:50,057 - DEBUG - Requesting: http://10.0.0.133:8081/analytics/uves/virtual-networks
2025-08-12 15:59:50,103 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-30460160:ctest-vn-58682922', 'href': 'http://10.0.0.133:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-30460160:ctest-vn-58682922?flat'}
2025-08-12 15:59:50,103 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-30460160:ctest-vn-58682922 is found in opserver
2025-08-12 15:59:50,113 - DEBUG - Do not have enough data to verify VN in agent
2025-08-12 15:59:50,118 - DEBUG - VRF ids for VN ctest-vn-58682922: {}
2025-08-12 15:59:50,118 - DEBUG - Requesting: http://10.0.0.133:8082/domains
2025-08-12 15:59:50,122 - DEBUG - Requesting: http://10.0.0.133:8082/domain/51a8d18b-6947-4111-b900-4e4b82af27cc
2025-08-12 15:59:50,132 - DEBUG - Requesting: http://10.0.0.133:8082/project/0d890ee7-82d4-48e6-bfd2-2d8708c20f58
2025-08-12 15:59:50,197 - DEBUG - Requesting: http://10.0.0.133:8082/virtual-network/390325f7-55df-4abb-90d5-261511f2c1a8
2025-08-12 15:59:50,207 - DEBUG - Requesting: http://10.0.0.133:8082/virtual-network/390325f7-55df-4abb-90d5-261511f2c1a8
2025-08-12 15:59:50,215 - DEBUG - Requesting: http://10.0.0.133:8082/routing-instance/3ca6f8e6-5cba-4a36-9ea1-072dc978c31b
2025-08-12 15:59:50,221 - DEBUG - Requesting: http://10.0.0.133:8082/routing-instance/3ca6f8e6-5cba-4a36-9ea1-072dc978c31b
2025-08-12 15:59:50,227 - DEBUG - Requesting: http://10.0.0.133:8082/route-target/3dbc3049-b619-4a93-acab-6cda82b6851d
2025-08-12 15:59:50,232 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-12 15:59:50,233 - DEBUG - Requesting: http://10.0.0.133:8082/virtual-network/390325f7-55df-4abb-90d5-261511f2c1a8
2025-08-12 15:59:50,241 - DEBUG - Requesting: http://10.0.0.133:8082/routing-instance/3ca6f8e6-5cba-4a36-9ea1-072dc978c31b
2025-08-12 15:59:50,252 - INFO - Verified VN network id 12 for VN 390325f7-55df-4abb-90d5-261511f2c1a8
2025-08-12 15:59:50,252 - INFO - Verifications in API Server for VN ctest-vn-58688225 passed
2025-08-12 15:59:50,252 - DEBUG - Requesting: http://10.0.0.133:8082/virtual-network/390325f7-55df-4abb-90d5-261511f2c1a8
2025-08-12 15:59:50,261 - DEBUG - Requesting: http://10.0.0.133:8082/routing-instance/3ca6f8e6-5cba-4a36-9ea1-072dc978c31b
2025-08-12 15:59:50,266 - DEBUG - Requesting: http://10.0.0.133:8082/routing-instance/3ca6f8e6-5cba-4a36-9ea1-072dc978c31b
2025-08-12 15:59:50,272 - DEBUG - Requesting: http://10.0.0.133:8082/route-target/3dbc3049-b619-4a93-acab-6cda82b6851d
2025-08-12 15:59:50,282 - DEBUG - Control-node 10.0.0.133 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-30460160:ctest-vn-58688225', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-30460160', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4108169029319871163', 'uuid-lslong': '10436289583438283176'}, 'enable': 'true', 'created': '2025-08-12T15:59:48', 'last-modified': '2025-08-12T15:59:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.267515'}
2025-08-12 15:59:50,287 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-12 15:59:50,287 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-58688225 passed
2025-08-12 15:59:50,287 - DEBUG - ====Verifying policy data for ctest-vn-58688225 in API_Server ======
2025-08-12 15:59:50,288 - DEBUG - Requesting: http://10.0.0.133:8082/domains
2025-08-12 15:59:50,292 - DEBUG - Requesting: http://10.0.0.133:8082/domain/51a8d18b-6947-4111-b900-4e4b82af27cc
2025-08-12 15:59:50,301 - DEBUG - Requesting: http://10.0.0.133:8082/project/0d890ee7-82d4-48e6-bfd2-2d8708c20f58
2025-08-12 15:59:50,371 - DEBUG - Requesting: http://10.0.0.133:8082/virtual-network/390325f7-55df-4abb-90d5-261511f2c1a8
2025-08-12 15:59:50,379 - DEBUG - ==>Verifying data for policy with id: a1ba0c13-b2d4-4264-8726-d11f534c44ce, fqn: ['default-domain', 'ctest-TestBasicPolicy-30460160', 'ctest-policy-allow-all-53971570']
2025-08-12 15:59:50,379 - INFO - VN ctest-vn-58688225 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-12 15:59:50,379 - DEBUG - Verifying the vn in opserver
2025-08-12 15:59:50,379 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-30460160:ctest-vn-58688225 virtual network link through opserver 10.0.0.133
2025-08-12 15:59:50,379 - DEBUG - Requesting: http://10.0.0.133:8081/analytics/uves/virtual-networks
2025-08-12 15:59:50,388 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-30460160:ctest-vn-58688225', 'href': 'http://10.0.0.133:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-30460160:ctest-vn-58688225?flat'}
2025-08-12 15:59:50,388 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-30460160:ctest-vn-58688225 is found in opserver
2025-08-12 15:59:50,397 - DEBUG - Do not have enough data to verify VN in agent
2025-08-12 15:59:50,402 - DEBUG - VRF ids for VN ctest-vn-58688225: {}
2025-08-12 15:59:50,451 - DEBUG - Services list from nova: [