2025-06-10 09:19:21,625 - INFO - Domain Default found not creating
2025-06-10 09:19:21,793 - INFO - Project ctest-TestBasicPolicy-05599415 not found, creating it
2025-06-10 09:19:22,298 - INFO - Created Project:ctest-TestBasicPolicy-05599415, ID : 9d70b5af-d7ca-495c-9ff7-ddc2a9c2897b
2025-06-10 09:19:24,012 - INFO - ================================================================================
2025-06-10 09:19:24,012 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-10 09:19:24,012 - 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-06-10 09:19:24,290 - DEBUG - Nothing to compare xmpp stats {'10.0.0.56': {'10.20.0.17': '0'}} with
2025-06-10 09:19:24,290 - INFO - Initial checks done. Running the testcase now
2025-06-10 09:19:24,290 - INFO -
2025-06-10 09:19:24,995 - DEBUG - Response for create_network : {'network': {'id': '467ff7db-3880-4df7-a1d1-6b7066c5fea6', 'name': 'ctest-vn-35687835', 'tenant_id': '9d70b5afd7ca495c9ff7ddc2a9c2897b', 'project_id': '9d70b5afd7ca495c9ff7ddc2a9c2897b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-05599415', 'ctest-vn-35687835'], 'port_security_enabled': True, 'description': ''}}
2025-06-10 09:19:25,230 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fc032a88-0b50-4a18-a5f3-976fd135b827', 'name': '', 'tenant_id': '9d70b5afd7ca495c9ff7ddc2a9c2897b', 'network_id': '467ff7db-3880-4df7-a1d1-6b7066c5fea6', 'ip_version': 4, 'cidr': '173.235.180.64/26', 'allocation_pools': [{'start': '173.235.180.66', 'end': '173.235.180.126'}], 'gateway_ip': '173.235.180.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '173.235.180.66', 'tags': [], 'project_id': '9d70b5afd7ca495c9ff7ddc2a9c2897b'}}
2025-06-10 09:19:25,249 - INFO - Created VN ctest-vn-35687835
2025-06-10 09:19:25,303 - DEBUG - VN ctest-vn-35687835 UUID is 467ff7db-3880-4df7-a1d1-6b7066c5fea6
2025-06-10 09:19:25,606 - DEBUG - Response for create_network : {'network': {'id': 'aa777517-8270-408d-bfa5-5272e9d58858', 'name': 'ctest-vn-93774187', 'tenant_id': '9d70b5afd7ca495c9ff7ddc2a9c2897b', 'project_id': '9d70b5afd7ca495c9ff7ddc2a9c2897b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-05599415', 'ctest-vn-93774187'], 'port_security_enabled': True, 'description': ''}}
2025-06-10 09:19:25,823 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a7f858b0-f2f7-4766-b194-9c1e7f0d2e49', 'name': '', 'tenant_id': '9d70b5afd7ca495c9ff7ddc2a9c2897b', 'network_id': 'aa777517-8270-408d-bfa5-5272e9d58858', 'ip_version': 4, 'cidr': '144.27.88.64/26', 'allocation_pools': [{'start': '144.27.88.66', 'end': '144.27.88.126'}], 'gateway_ip': '144.27.88.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '144.27.88.66', 'tags': [], 'project_id': '9d70b5afd7ca495c9ff7ddc2a9c2897b'}}
2025-06-10 09:19:25,843 - INFO - Created VN ctest-vn-93774187
2025-06-10 09:19:25,895 - DEBUG - VN ctest-vn-93774187 UUID is aa777517-8270-408d-bfa5-5272e9d58858
2025-06-10 09:19:26,022 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-05599415:ctest-vn-35687835, 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-05599415:ctest-vn-93774187, 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-06-10 09:19:26,338 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '467ff7db-3880-4df7-a1d1-6b7066c5fea6', 'name': 'ctest-vn-35687835', 'tenant_id': '9d70b5afd7ca495c9ff7ddc2a9c2897b', 'project_id': '9d70b5afd7ca495c9ff7ddc2a9c2897b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['fc032a88-0b50-4a18-a5f3-976fd135b827'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-05599415', 'ctest-vn-35687835'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-05599415', 'ctest-policy-allow-all-16710427']], 'subnet_ipam': [{'subnet_cidr': '173.235.180.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-10 09:19:26,631 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'aa777517-8270-408d-bfa5-5272e9d58858', 'name': 'ctest-vn-93774187', 'tenant_id': '9d70b5afd7ca495c9ff7ddc2a9c2897b', 'project_id': '9d70b5afd7ca495c9ff7ddc2a9c2897b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a7f858b0-f2f7-4766-b194-9c1e7f0d2e49'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-05599415', 'ctest-vn-93774187'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-05599415', 'ctest-policy-allow-all-16710427']], 'subnet_ipam': [{'subnet_cidr': '144.27.88.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-10 09:19:26,795 - DEBUG - Requesting: http://10.0.0.56:8082/domains
2025-06-10 09:19:27,146 - DEBUG - Requesting: http://10.0.0.56:8082/domains
2025-06-10 09:19:27,179 - DEBUG - Requesting: http://10.0.0.56:8082/domain/337592ad-097b-4290-b226-fadcdd96d6b8
2025-06-10 09:19:27,194 - DEBUG - Requesting: http://10.0.0.56:8082/project/9d70b5af-d7ca-495c-9ff7-ddc2a9c2897b
2025-06-10 09:19:27,271 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/467ff7db-3880-4df7-a1d1-6b7066c5fea6
2025-06-10 09:19:27,284 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/467ff7db-3880-4df7-a1d1-6b7066c5fea6
2025-06-10 09:19:27,299 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/3efbad6b-c266-4db8-849c-75e9398ea02a
2025-06-10 09:19:27,311 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/3efbad6b-c266-4db8-849c-75e9398ea02a
2025-06-10 09:19:27,321 - DEBUG - Requesting: http://10.0.0.56:8082/route-target/37097829-6d8e-4a9d-a913-101a897022db
2025-06-10 09:19:27,328 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-10 09:19:27,328 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/467ff7db-3880-4df7-a1d1-6b7066c5fea6
2025-06-10 09:19:27,339 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/3efbad6b-c266-4db8-849c-75e9398ea02a
2025-06-10 09:19:27,357 - INFO - Verified VN network id 9 for VN 467ff7db-3880-4df7-a1d1-6b7066c5fea6
2025-06-10 09:19:27,357 - INFO - Verifications in API Server for VN ctest-vn-35687835 passed
2025-06-10 09:19:27,357 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/467ff7db-3880-4df7-a1d1-6b7066c5fea6
2025-06-10 09:19:27,369 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/3efbad6b-c266-4db8-849c-75e9398ea02a
2025-06-10 09:19:27,378 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/3efbad6b-c266-4db8-849c-75e9398ea02a
2025-06-10 09:19:27,387 - DEBUG - Requesting: http://10.0.0.56:8082/route-target/37097829-6d8e-4a9d-a913-101a897022db
2025-06-10 09:19:27,401 - DEBUG - Control-node 10.0.0.56 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-05599415:ctest-vn-35687835', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-05599415', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5080051425615039991', 'uuid-lslong': '11660219040743685798'}, 'enable': 'true', 'created': '2025-06-10T09:19:24', 'last-modified': '2025-06-10T09:19:26', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.093922'}
2025-06-10 09:19:27,408 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-10 09:19:27,409 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-35687835 passed
2025-06-10 09:19:27,409 - DEBUG - ====Verifying policy data for ctest-vn-35687835 in API_Server ======
2025-06-10 09:19:27,409 - DEBUG - Requesting: http://10.0.0.56:8082/domains
2025-06-10 09:19:27,416 - DEBUG - Requesting: http://10.0.0.56:8082/domain/337592ad-097b-4290-b226-fadcdd96d6b8
2025-06-10 09:19:27,430 - DEBUG - Requesting: http://10.0.0.56:8082/project/9d70b5af-d7ca-495c-9ff7-ddc2a9c2897b
2025-06-10 09:19:27,510 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/467ff7db-3880-4df7-a1d1-6b7066c5fea6
2025-06-10 09:19:27,523 - DEBUG - ==>Verifying data for policy with id: 0f2dd705-f133-4e9f-b653-cba4c8585c79, fqn: ['default-domain', 'ctest-TestBasicPolicy-05599415', 'ctest-policy-allow-all-16710427']
2025-06-10 09:19:27,523 - INFO - VN ctest-vn-35687835 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-10 09:19:27,523 - DEBUG - Verifying the vn in opserver
2025-06-10 09:19:27,523 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-05599415:ctest-vn-35687835 virtual network link through opserver 10.0.0.56
2025-06-10 09:19:27,523 - DEBUG - Requesting: http://10.0.0.56:8081/analytics/uves/virtual-networks
2025-06-10 09:19:27,860 - DEBUG - Requesting: http://10.0.0.56:8081/analytics/uves/virtual-networks
2025-06-10 09:19:27,922 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-05599415:ctest-vn-35687835', 'href': 'http://10.0.0.56:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-05599415:ctest-vn-35687835?flat'}
2025-06-10 09:19:27,922 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-05599415:ctest-vn-35687835 is found in opserver
2025-06-10 09:19:27,936 - DEBUG - Do not have enough data to verify VN in agent
2025-06-10 09:19:27,942 - DEBUG - VRF ids for VN ctest-vn-35687835: {}
2025-06-10 09:19:27,942 - DEBUG - Requesting: http://10.0.0.56:8082/domains
2025-06-10 09:19:27,948 - DEBUG - Requesting: http://10.0.0.56:8082/domain/337592ad-097b-4290-b226-fadcdd96d6b8
2025-06-10 09:19:27,962 - DEBUG - Requesting: http://10.0.0.56:8082/project/9d70b5af-d7ca-495c-9ff7-ddc2a9c2897b
2025-06-10 09:19:28,043 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/aa777517-8270-408d-bfa5-5272e9d58858
2025-06-10 09:19:28,058 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/aa777517-8270-408d-bfa5-5272e9d58858
2025-06-10 09:19:28,069 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/561fc6c8-c6b0-4d8c-ae8a-0ecf49d9904f
2025-06-10 09:19:28,077 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/561fc6c8-c6b0-4d8c-ae8a-0ecf49d9904f
2025-06-10 09:19:28,087 - DEBUG - Requesting: http://10.0.0.56:8082/route-target/8dc409dc-b190-4202-a8dd-32fbe882f78b
2025-06-10 09:19:28,096 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-10 09:19:28,096 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/aa777517-8270-408d-bfa5-5272e9d58858
2025-06-10 09:19:28,107 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/561fc6c8-c6b0-4d8c-ae8a-0ecf49d9904f
2025-06-10 09:19:28,127 - INFO - Verified VN network id 10 for VN aa777517-8270-408d-bfa5-5272e9d58858
2025-06-10 09:19:28,127 - INFO - Verifications in API Server for VN ctest-vn-93774187 passed
2025-06-10 09:19:28,128 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/aa777517-8270-408d-bfa5-5272e9d58858
2025-06-10 09:19:28,140 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/561fc6c8-c6b0-4d8c-ae8a-0ecf49d9904f
2025-06-10 09:19:28,149 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/561fc6c8-c6b0-4d8c-ae8a-0ecf49d9904f
2025-06-10 09:19:28,157 - DEBUG - Requesting: http://10.0.0.56:8082/route-target/8dc409dc-b190-4202-a8dd-32fbe882f78b
2025-06-10 09:19:28,170 - DEBUG - Control-node 10.0.0.56 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-05599415:ctest-vn-93774187', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-05599415', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12283415252509409421', 'uuid-lslong': '13809534485904328792'}, 'enable': 'true', 'created': '2025-06-10T09:19:25', 'last-modified': '2025-06-10T09:19:26', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.615724'}
2025-06-10 09:19:28,178 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-10 09:19:28,178 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-93774187 passed
2025-06-10 09:19:28,178 - DEBUG - ====Verifying policy data for ctest-vn-93774187 in API_Server ======
2025-06-10 09:19:28,178 - DEBUG - Requesting: http://10.0.0.56:8082/domains
2025-06-10 09:19:28,185 - DEBUG - Requesting: http://10.0.0.56:8082/domain/337592ad-097b-4290-b226-fadcdd96d6b8
2025-06-10 09:19:28,200 - DEBUG - Requesting: http://10.0.0.56:8082/project/9d70b5af-d7ca-495c-9ff7-ddc2a9c2897b
2025-06-10 09:19:28,277 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/aa777517-8270-408d-bfa5-5272e9d58858
2025-06-10 09:19:28,289 - DEBUG - ==>Verifying data for policy with id: 0f2dd705-f133-4e9f-b653-cba4c8585c79, fqn: ['default-domain', 'ctest-TestBasicPolicy-05599415', 'ctest-policy-allow-all-16710427']
2025-06-10 09:19:28,289 - INFO - VN ctest-vn-93774187 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-10 09:19:28,289 - DEBUG - Verifying the vn in opserver
2025-06-10 09:19:28,289 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-05599415:ctest-vn-93774187 virtual network link through opserver 10.0.0.56
2025-06-10 09:19:28,289 - DEBUG - Requesting: http://10.0.0.56:8081/analytics/uves/virtual-networks
2025-06-10 09:19:28,302 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-05599415:ctest-vn-93774187', 'href': 'http://10.0.0.56:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-05599415:ctest-vn-93774187?flat'}
2025-06-10 09:19:28,302 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-05599415:ctest-vn-93774187 is found in opserver
2025-06-10 09:19:28,318 - DEBUG - Do not have enough data to verify VN in agent
2025-06-10 09:19:28,324 - DEBUG - VRF ids for VN ctest-vn-93774187: {}
2025-06-10 09:19:28,395 - DEBUG - Services list from nova: [