2025-06-23 02:03:08,794 - INFO - Domain Default found not creating
2025-06-23 02:03:08,932 - INFO - Project ctest-TestBasicPolicy-77234239 not found, creating it
2025-06-23 02:03:09,396 - INFO - Created Project:ctest-TestBasicPolicy-77234239, ID : cb7b4af4-4f00-4029-9602-7c9628cec524
2025-06-23 02:03:10,786 - INFO - ================================================================================
2025-06-23 02:03:10,786 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-23 02:03:10,786 - 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-23 02:03:11,049 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.18': '0'}} with
2025-06-23 02:03:11,049 - INFO - Initial checks done. Running the testcase now
2025-06-23 02:03:11,049 - INFO -
2025-06-23 02:03:11,633 - DEBUG - Response for create_network : {'network': {'id': 'd76e5667-6e92-44ba-9600-67d36307fbcd', 'name': 'ctest-vn-79658540', 'tenant_id': 'cb7b4af44f00402996027c9628cec524', 'project_id': 'cb7b4af44f00402996027c9628cec524', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-77234239', 'ctest-vn-79658540'], 'port_security_enabled': True, 'description': ''}}
2025-06-23 02:03:11,797 - DEBUG - Response for create_subnet : {'subnet': {'id': '18baf4b3-955d-427e-a60f-d681b0d8a868', 'name': '', 'tenant_id': 'cb7b4af44f00402996027c9628cec524', 'network_id': 'd76e5667-6e92-44ba-9600-67d36307fbcd', 'ip_version': 4, 'cidr': '119.201.25.64/26', 'allocation_pools': [{'start': '119.201.25.66', 'end': '119.201.25.126'}], 'gateway_ip': '119.201.25.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '119.201.25.66', 'tags': [], 'project_id': 'cb7b4af44f00402996027c9628cec524'}}
2025-06-23 02:03:11,814 - INFO - Created VN ctest-vn-79658540
2025-06-23 02:03:11,865 - DEBUG - VN ctest-vn-79658540 UUID is d76e5667-6e92-44ba-9600-67d36307fbcd
2025-06-23 02:03:12,186 - DEBUG - Response for create_network : {'network': {'id': 'cf6f9e0f-9df9-4477-aeaf-54f2da80d805', 'name': 'ctest-vn-13235979', 'tenant_id': 'cb7b4af44f00402996027c9628cec524', 'project_id': 'cb7b4af44f00402996027c9628cec524', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-77234239', 'ctest-vn-13235979'], 'port_security_enabled': True, 'description': ''}}
2025-06-23 02:03:12,357 - DEBUG - Response for create_subnet : {'subnet': {'id': '85d554a9-8d38-475d-99c7-5f8cf229f496', 'name': '', 'tenant_id': 'cb7b4af44f00402996027c9628cec524', 'network_id': 'cf6f9e0f-9df9-4477-aeaf-54f2da80d805', 'ip_version': 4, 'cidr': '191.47.100.64/26', 'allocation_pools': [{'start': '191.47.100.66', 'end': '191.47.100.126'}], 'gateway_ip': '191.47.100.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '191.47.100.66', 'tags': [], 'project_id': 'cb7b4af44f00402996027c9628cec524'}}
2025-06-23 02:03:12,376 - INFO - Created VN ctest-vn-13235979
2025-06-23 02:03:12,429 - DEBUG - VN ctest-vn-13235979 UUID is cf6f9e0f-9df9-4477-aeaf-54f2da80d805
2025-06-23 02:03:12,549 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-77234239:ctest-vn-79658540, 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-77234239:ctest-vn-13235979, 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-23 02:03:12,865 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd76e5667-6e92-44ba-9600-67d36307fbcd', 'name': 'ctest-vn-79658540', 'tenant_id': 'cb7b4af44f00402996027c9628cec524', 'project_id': 'cb7b4af44f00402996027c9628cec524', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['18baf4b3-955d-427e-a60f-d681b0d8a868'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-77234239', 'ctest-vn-79658540'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-77234239', 'ctest-policy-allow-all-73409908']], 'subnet_ipam': [{'subnet_cidr': '119.201.25.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-23 02:03:13,129 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'cf6f9e0f-9df9-4477-aeaf-54f2da80d805', 'name': 'ctest-vn-13235979', 'tenant_id': 'cb7b4af44f00402996027c9628cec524', 'project_id': 'cb7b4af44f00402996027c9628cec524', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['85d554a9-8d38-475d-99c7-5f8cf229f496'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-77234239', 'ctest-vn-13235979'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-77234239', 'ctest-policy-allow-all-73409908']], 'subnet_ipam': [{'subnet_cidr': '191.47.100.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-23 02:03:13,293 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-23 02:03:13,589 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-23 02:03:13,618 - DEBUG - Requesting: http://10.0.0.38:8082/domain/d6595adb-9112-44b3-903a-b89621f5c351
2025-06-23 02:03:13,631 - DEBUG - Requesting: http://10.0.0.38:8082/project/cb7b4af4-4f00-4029-9602-7c9628cec524
2025-06-23 02:03:13,712 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d76e5667-6e92-44ba-9600-67d36307fbcd
2025-06-23 02:03:13,723 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d76e5667-6e92-44ba-9600-67d36307fbcd
2025-06-23 02:03:13,733 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0cf90c60-af89-4620-8f3f-4ab079513191
2025-06-23 02:03:13,742 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0cf90c60-af89-4620-8f3f-4ab079513191
2025-06-23 02:03:13,752 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/86b3635f-dacf-45a6-9bd1-eb950fc456eb
2025-06-23 02:03:13,759 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-23 02:03:13,759 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d76e5667-6e92-44ba-9600-67d36307fbcd
2025-06-23 02:03:13,770 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0cf90c60-af89-4620-8f3f-4ab079513191
2025-06-23 02:03:13,786 - INFO - Verified VN network id 8 for VN d76e5667-6e92-44ba-9600-67d36307fbcd
2025-06-23 02:03:13,786 - INFO - Verifications in API Server for VN ctest-vn-79658540 passed
2025-06-23 02:03:13,786 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d76e5667-6e92-44ba-9600-67d36307fbcd
2025-06-23 02:03:13,796 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0cf90c60-af89-4620-8f3f-4ab079513191
2025-06-23 02:03:13,802 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0cf90c60-af89-4620-8f3f-4ab079513191
2025-06-23 02:03:13,809 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/86b3635f-dacf-45a6-9bd1-eb950fc456eb
2025-06-23 02:03:13,822 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-77234239:ctest-vn-79658540', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-77234239', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15523439967829378234', 'uuid-lslong': '10808753263286418381'}, 'enable': 'true', 'created': '2025-06-23T02:03:11', 'last-modified': '2025-06-23T02:03:12', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.988332'}
2025-06-23 02:03:13,829 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-23 02:03:13,829 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-79658540 passed
2025-06-23 02:03:13,829 - DEBUG - ====Verifying policy data for ctest-vn-79658540 in API_Server ======
2025-06-23 02:03:13,829 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-23 02:03:13,835 - DEBUG - Requesting: http://10.0.0.38:8082/domain/d6595adb-9112-44b3-903a-b89621f5c351
2025-06-23 02:03:13,846 - DEBUG - Requesting: http://10.0.0.38:8082/project/cb7b4af4-4f00-4029-9602-7c9628cec524
2025-06-23 02:03:13,919 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d76e5667-6e92-44ba-9600-67d36307fbcd
2025-06-23 02:03:13,929 - DEBUG - ==>Verifying data for policy with id: d186da1e-99eb-462c-bb2e-926d36f2cfbe, fqn: ['default-domain', 'ctest-TestBasicPolicy-77234239', 'ctest-policy-allow-all-73409908']
2025-06-23 02:03:13,929 - INFO - VN ctest-vn-79658540 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-23 02:03:13,929 - DEBUG - Verifying the vn in opserver
2025-06-23 02:03:13,929 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-77234239:ctest-vn-79658540 virtual network link through opserver 10.0.0.38
2025-06-23 02:03:13,930 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-06-23 02:03:14,223 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-06-23 02:03:14,276 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-77234239:ctest-vn-79658540', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-77234239:ctest-vn-79658540?flat'}
2025-06-23 02:03:14,276 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-77234239:ctest-vn-79658540 is found in opserver
2025-06-23 02:03:14,287 - DEBUG - Do not have enough data to verify VN in agent
2025-06-23 02:03:14,292 - DEBUG - VRF ids for VN ctest-vn-79658540: {}
2025-06-23 02:03:14,292 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-23 02:03:14,298 - DEBUG - Requesting: http://10.0.0.38:8082/domain/d6595adb-9112-44b3-903a-b89621f5c351
2025-06-23 02:03:14,309 - DEBUG - Requesting: http://10.0.0.38:8082/project/cb7b4af4-4f00-4029-9602-7c9628cec524
2025-06-23 02:03:14,380 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/cf6f9e0f-9df9-4477-aeaf-54f2da80d805
2025-06-23 02:03:14,392 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/cf6f9e0f-9df9-4477-aeaf-54f2da80d805
2025-06-23 02:03:14,401 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/47776df5-f19d-4086-a164-3be0f26523d3
2025-06-23 02:03:14,407 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/47776df5-f19d-4086-a164-3be0f26523d3
2025-06-23 02:03:14,413 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/4b24e310-a021-4fee-9036-273be86fd06d
2025-06-23 02:03:14,419 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-23 02:03:14,419 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/cf6f9e0f-9df9-4477-aeaf-54f2da80d805
2025-06-23 02:03:14,427 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/47776df5-f19d-4086-a164-3be0f26523d3
2025-06-23 02:03:14,441 - INFO - Verified VN network id 9 for VN cf6f9e0f-9df9-4477-aeaf-54f2da80d805
2025-06-23 02:03:14,441 - INFO - Verifications in API Server for VN ctest-vn-13235979 passed
2025-06-23 02:03:14,441 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/cf6f9e0f-9df9-4477-aeaf-54f2da80d805
2025-06-23 02:03:14,451 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/47776df5-f19d-4086-a164-3be0f26523d3
2025-06-23 02:03:14,458 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/47776df5-f19d-4086-a164-3be0f26523d3
2025-06-23 02:03:14,465 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/4b24e310-a021-4fee-9036-273be86fd06d
2025-06-23 02:03:14,478 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-77234239:ctest-vn-13235979', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-77234239', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14947339478178022519', 'uuid-lslong': '12587372885548521477'}, 'enable': 'true', 'created': '2025-06-23T02:03:12', 'last-modified': '2025-06-23T02:03:13', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.378600'}
2025-06-23 02:03:14,487 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-23 02:03:14,487 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-13235979 passed
2025-06-23 02:03:14,487 - DEBUG - ====Verifying policy data for ctest-vn-13235979 in API_Server ======
2025-06-23 02:03:14,487 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-23 02:03:14,496 - DEBUG - Requesting: http://10.0.0.38:8082/domain/d6595adb-9112-44b3-903a-b89621f5c351
2025-06-23 02:03:14,510 - DEBUG - Requesting: http://10.0.0.38:8082/project/cb7b4af4-4f00-4029-9602-7c9628cec524
2025-06-23 02:03:14,590 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/cf6f9e0f-9df9-4477-aeaf-54f2da80d805
2025-06-23 02:03:14,600 - DEBUG - ==>Verifying data for policy with id: d186da1e-99eb-462c-bb2e-926d36f2cfbe, fqn: ['default-domain', 'ctest-TestBasicPolicy-77234239', 'ctest-policy-allow-all-73409908']
2025-06-23 02:03:14,600 - INFO - VN ctest-vn-13235979 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-23 02:03:14,600 - DEBUG - Verifying the vn in opserver
2025-06-23 02:03:14,600 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-77234239:ctest-vn-13235979 virtual network link through opserver 10.0.0.38
2025-06-23 02:03:14,600 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-06-23 02:03:14,610 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-77234239:ctest-vn-13235979', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-77234239:ctest-vn-13235979?flat'}
2025-06-23 02:03:14,610 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-77234239:ctest-vn-13235979 is found in opserver
2025-06-23 02:03:14,620 - DEBUG - Do not have enough data to verify VN in agent
2025-06-23 02:03:14,624 - DEBUG - VRF ids for VN ctest-vn-13235979: {}
2025-06-23 02:03:14,677 - DEBUG - Services list from nova: [