2025-03-31 02:37:23,825 - INFO - Domain Default found not creating
2025-03-31 02:37:23,969 - INFO - Project ctest-TestBasicPolicy-15930578 not found, creating it
2025-03-31 02:37:24,454 - INFO - Created Project:ctest-TestBasicPolicy-15930578, ID : a7a0160d-2422-4fe2-a29f-d5982cac7ea0
2025-03-31 02:37:25,903 - INFO - ================================================================================
2025-03-31 02:37:25,903 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-03-31 02:37:25,903 - 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-03-31 02:37:26,156 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.23': '0'}} with
2025-03-31 02:37:26,156 - INFO - Initial checks done. Running the testcase now
2025-03-31 02:37:26,156 - INFO -
2025-03-31 02:37:26,712 - DEBUG - Response for create_network : {'network': {'id': '2c0e0d08-0c34-448f-baee-5980766eec76', 'name': 'ctest-vn-93931822', 'tenant_id': 'a7a0160d24224fe2a29fd5982cac7ea0', 'project_id': 'a7a0160d24224fe2a29fd5982cac7ea0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15930578', 'ctest-vn-93931822'], 'port_security_enabled': True, 'description': ''}}
2025-03-31 02:37:26,922 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a7ea3649-9805-48c1-8108-3450f719d210', 'name': '', 'tenant_id': 'a7a0160d24224fe2a29fd5982cac7ea0', 'network_id': '2c0e0d08-0c34-448f-baee-5980766eec76', 'ip_version': 4, 'cidr': '161.94.135.0/26', 'allocation_pools': [{'start': '161.94.135.2', 'end': '161.94.135.62'}], 'gateway_ip': '161.94.135.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '161.94.135.2', 'tags': [], 'project_id': 'a7a0160d24224fe2a29fd5982cac7ea0'}}
2025-03-31 02:37:26,939 - INFO - Created VN ctest-vn-93931822
2025-03-31 02:37:26,990 - DEBUG - VN ctest-vn-93931822 UUID is 2c0e0d08-0c34-448f-baee-5980766eec76
2025-03-31 02:37:27,320 - DEBUG - Response for create_network : {'network': {'id': 'a16cbd45-af30-43fc-8181-ce48e85b0911', 'name': 'ctest-vn-65294759', 'tenant_id': 'a7a0160d24224fe2a29fd5982cac7ea0', 'project_id': 'a7a0160d24224fe2a29fd5982cac7ea0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15930578', 'ctest-vn-65294759'], 'port_security_enabled': True, 'description': ''}}
2025-03-31 02:37:27,493 - DEBUG - Response for create_subnet : {'subnet': {'id': '9311d130-6364-4968-bcfa-337d101c6d5a', 'name': '', 'tenant_id': 'a7a0160d24224fe2a29fd5982cac7ea0', 'network_id': 'a16cbd45-af30-43fc-8181-ce48e85b0911', 'ip_version': 4, 'cidr': '44.92.218.64/26', 'allocation_pools': [{'start': '44.92.218.66', 'end': '44.92.218.126'}], 'gateway_ip': '44.92.218.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '44.92.218.66', 'tags': [], 'project_id': 'a7a0160d24224fe2a29fd5982cac7ea0'}}
2025-03-31 02:37:27,512 - INFO - Created VN ctest-vn-65294759
2025-03-31 02:37:27,566 - DEBUG - VN ctest-vn-65294759 UUID is a16cbd45-af30-43fc-8181-ce48e85b0911
2025-03-31 02:37:27,683 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-15930578:ctest-vn-93931822, 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-15930578:ctest-vn-65294759, 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-03-31 02:37:28,008 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2c0e0d08-0c34-448f-baee-5980766eec76', 'name': 'ctest-vn-93931822', 'tenant_id': 'a7a0160d24224fe2a29fd5982cac7ea0', 'project_id': 'a7a0160d24224fe2a29fd5982cac7ea0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a7ea3649-9805-48c1-8108-3450f719d210'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15930578', 'ctest-vn-93931822'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-15930578', 'ctest-policy-allow-all-14865301']], 'subnet_ipam': [{'subnet_cidr': '161.94.135.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-03-31 02:37:28,295 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a16cbd45-af30-43fc-8181-ce48e85b0911', 'name': 'ctest-vn-65294759', 'tenant_id': 'a7a0160d24224fe2a29fd5982cac7ea0', 'project_id': 'a7a0160d24224fe2a29fd5982cac7ea0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9311d130-6364-4968-bcfa-337d101c6d5a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15930578', 'ctest-vn-65294759'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-15930578', 'ctest-policy-allow-all-14865301']], 'subnet_ipam': [{'subnet_cidr': '44.92.218.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-03-31 02:37:28,450 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-03-31 02:37:28,749 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-03-31 02:37:28,777 - DEBUG - Requesting: http://10.0.0.22:8082/domain/2e3ba078-0ff6-4cdb-b0cb-5f08421c2c62
2025-03-31 02:37:28,790 - DEBUG - Requesting: http://10.0.0.22:8082/project/a7a0160d-2422-4fe2-a29f-d5982cac7ea0
2025-03-31 02:37:28,867 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/2c0e0d08-0c34-448f-baee-5980766eec76
2025-03-31 02:37:28,879 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/2c0e0d08-0c34-448f-baee-5980766eec76
2025-03-31 02:37:28,889 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/a0c2092b-dd99-4967-99b8-b15882bf0fc3
2025-03-31 02:37:28,896 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/a0c2092b-dd99-4967-99b8-b15882bf0fc3
2025-03-31 02:37:28,904 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/053c8302-3573-4dd4-a6b4-4223a30f27fe
2025-03-31 02:37:28,910 - DEBUG - Route Targets: ['target:64512:8000004']
2025-03-31 02:37:28,910 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/2c0e0d08-0c34-448f-baee-5980766eec76
2025-03-31 02:37:28,919 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/a0c2092b-dd99-4967-99b8-b15882bf0fc3
2025-03-31 02:37:28,935 - INFO - Verified VN network id 9 for VN 2c0e0d08-0c34-448f-baee-5980766eec76
2025-03-31 02:37:28,935 - INFO - Verifications in API Server for VN ctest-vn-93931822 passed
2025-03-31 02:37:28,935 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/2c0e0d08-0c34-448f-baee-5980766eec76
2025-03-31 02:37:28,944 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/a0c2092b-dd99-4967-99b8-b15882bf0fc3
2025-03-31 02:37:28,950 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/a0c2092b-dd99-4967-99b8-b15882bf0fc3
2025-03-31 02:37:28,957 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/053c8302-3573-4dd4-a6b4-4223a30f27fe
2025-03-31 02:37:28,969 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-15930578:ctest-vn-93931822', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-15930578', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3174489115558429839', 'uuid-lslong': '13469801943789399158'}, 'enable': 'true', 'created': '2025-03-31T02:37:26', 'last-modified': '2025-03-31T02:37:27', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.984140'}
2025-03-31 02:37:28,975 - DEBUG - Route Targets: ['target:64512:8000004']
2025-03-31 02:37:28,975 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-93931822 passed
2025-03-31 02:37:28,975 - DEBUG - ====Verifying policy data for ctest-vn-93931822 in API_Server ======
2025-03-31 02:37:28,975 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-03-31 02:37:28,980 - DEBUG - Requesting: http://10.0.0.22:8082/domain/2e3ba078-0ff6-4cdb-b0cb-5f08421c2c62
2025-03-31 02:37:28,991 - DEBUG - Requesting: http://10.0.0.22:8082/project/a7a0160d-2422-4fe2-a29f-d5982cac7ea0
2025-03-31 02:37:29,060 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/2c0e0d08-0c34-448f-baee-5980766eec76
2025-03-31 02:37:29,070 - DEBUG - ==>Verifying data for policy with id: 87a0ff57-ce05-4fbd-b221-518d742617b6, fqn: ['default-domain', 'ctest-TestBasicPolicy-15930578', 'ctest-policy-allow-all-14865301']
2025-03-31 02:37:29,070 - INFO - VN ctest-vn-93931822 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-31 02:37:29,070 - DEBUG - Verifying the vn in opserver
2025-03-31 02:37:29,070 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-15930578:ctest-vn-93931822 virtual network link through opserver 10.0.0.22
2025-03-31 02:37:29,070 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-03-31 02:37:29,364 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-03-31 02:37:29,414 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-15930578:ctest-vn-93931822', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-15930578:ctest-vn-93931822?flat'}
2025-03-31 02:37:29,414 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-15930578:ctest-vn-93931822 is found in opserver
2025-03-31 02:37:29,426 - DEBUG - Do not have enough data to verify VN in agent
2025-03-31 02:37:29,430 - DEBUG - VRF ids for VN ctest-vn-93931822: {}
2025-03-31 02:37:29,430 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-03-31 02:37:29,436 - DEBUG - Requesting: http://10.0.0.22:8082/domain/2e3ba078-0ff6-4cdb-b0cb-5f08421c2c62
2025-03-31 02:37:29,448 - DEBUG - Requesting: http://10.0.0.22:8082/project/a7a0160d-2422-4fe2-a29f-d5982cac7ea0
2025-03-31 02:37:29,525 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/a16cbd45-af30-43fc-8181-ce48e85b0911
2025-03-31 02:37:29,537 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/a16cbd45-af30-43fc-8181-ce48e85b0911
2025-03-31 02:37:29,548 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/6eff2d59-168a-4fde-906b-fd3c3fb00810
2025-03-31 02:37:29,555 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/6eff2d59-168a-4fde-906b-fd3c3fb00810
2025-03-31 02:37:29,562 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/0e265a51-79a6-4380-ab86-083bec984dfb
2025-03-31 02:37:29,568 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-31 02:37:29,568 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/a16cbd45-af30-43fc-8181-ce48e85b0911
2025-03-31 02:37:29,576 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/6eff2d59-168a-4fde-906b-fd3c3fb00810
2025-03-31 02:37:29,589 - INFO - Verified VN network id 10 for VN a16cbd45-af30-43fc-8181-ce48e85b0911
2025-03-31 02:37:29,589 - INFO - Verifications in API Server for VN ctest-vn-65294759 passed
2025-03-31 02:37:29,589 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/a16cbd45-af30-43fc-8181-ce48e85b0911
2025-03-31 02:37:29,598 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/6eff2d59-168a-4fde-906b-fd3c3fb00810
2025-03-31 02:37:29,605 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/6eff2d59-168a-4fde-906b-fd3c3fb00810
2025-03-31 02:37:29,611 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/0e265a51-79a6-4380-ab86-083bec984dfb
2025-03-31 02:37:29,624 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-15930578:ctest-vn-65294759', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-15930578', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11631880044580717564', 'uuid-lslong': '9331966715419625745'}, 'enable': 'true', 'created': '2025-03-31T02:37:27', 'last-modified': '2025-03-31T02:37:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.398679'}
2025-03-31 02:37:29,630 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-31 02:37:29,630 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-65294759 passed
2025-03-31 02:37:29,630 - DEBUG - ====Verifying policy data for ctest-vn-65294759 in API_Server ======
2025-03-31 02:37:29,630 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-03-31 02:37:29,636 - DEBUG - Requesting: http://10.0.0.22:8082/domain/2e3ba078-0ff6-4cdb-b0cb-5f08421c2c62
2025-03-31 02:37:29,648 - DEBUG - Requesting: http://10.0.0.22:8082/project/a7a0160d-2422-4fe2-a29f-d5982cac7ea0
2025-03-31 02:37:29,723 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/a16cbd45-af30-43fc-8181-ce48e85b0911
2025-03-31 02:37:29,733 - DEBUG - ==>Verifying data for policy with id: 87a0ff57-ce05-4fbd-b221-518d742617b6, fqn: ['default-domain', 'ctest-TestBasicPolicy-15930578', 'ctest-policy-allow-all-14865301']
2025-03-31 02:37:29,733 - INFO - VN ctest-vn-65294759 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-31 02:37:29,733 - DEBUG - Verifying the vn in opserver
2025-03-31 02:37:29,733 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-15930578:ctest-vn-65294759 virtual network link through opserver 10.0.0.22
2025-03-31 02:37:29,733 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-03-31 02:37:29,743 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-15930578:ctest-vn-65294759', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-15930578:ctest-vn-65294759?flat'}
2025-03-31 02:37:29,743 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-15930578:ctest-vn-65294759 is found in opserver
2025-03-31 02:37:29,753 - DEBUG - Do not have enough data to verify VN in agent
2025-03-31 02:37:29,759 - DEBUG - VRF ids for VN ctest-vn-65294759: {}
2025-03-31 02:37:29,810 - DEBUG - Services list from nova: [