2024-12-23 11:39:06,503 - INFO - Domain Default found not creating
2024-12-23 11:39:06,654 - INFO - Project ctest-TestBasicPolicy-03616388 not found, creating it
2024-12-23 11:39:07,185 - INFO - Created Project:ctest-TestBasicPolicy-03616388, ID : 5f659a69-591f-4aa7-97b2-5a08fa56564c
2024-12-23 11:39:08,825 - INFO - ================================================================================
2024-12-23 11:39:08,825 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-12-23 11:39:08,825 - 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
2024-12-23 11:39:09,081 - DEBUG - Nothing to compare xmpp stats {'10.0.0.44': {'10.20.0.5': '0'}} with
2024-12-23 11:39:09,081 - INFO - Initial checks done. Running the testcase now
2024-12-23 11:39:09,081 - INFO -
2024-12-23 11:39:09,679 - DEBUG - Response for create_network : {'network': {'id': 'db13b8ae-992e-4874-9336-a20d8ebbb3c4', 'name': 'ctest-vn-91022606', 'tenant_id': '5f659a69591f4aa797b25a08fa56564c', 'project_id': '5f659a69591f4aa797b25a08fa56564c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-03616388', 'ctest-vn-91022606'], 'port_security_enabled': True, 'description': ''}}
2024-12-23 11:39:09,854 - DEBUG - Response for create_subnet : {'subnet': {'id': '9ef99c78-061c-4208-b427-f29477cd7f7c', 'name': '', 'tenant_id': '5f659a69591f4aa797b25a08fa56564c', 'network_id': 'db13b8ae-992e-4874-9336-a20d8ebbb3c4', 'ip_version': 4, 'cidr': '20.224.164.128/26', 'allocation_pools': [{'start': '20.224.164.130', 'end': '20.224.164.190'}], 'gateway_ip': '20.224.164.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '20.224.164.130', 'tags': [], 'project_id': '5f659a69591f4aa797b25a08fa56564c'}}
2024-12-23 11:39:09,876 - INFO - Created VN ctest-vn-91022606
2024-12-23 11:39:09,932 - DEBUG - VN ctest-vn-91022606 UUID is db13b8ae-992e-4874-9336-a20d8ebbb3c4
2024-12-23 11:39:10,228 - DEBUG - Response for create_network : {'network': {'id': 'bf12dd21-38c9-4346-87cd-ec05a649a86d', 'name': 'ctest-vn-10983159', 'tenant_id': '5f659a69591f4aa797b25a08fa56564c', 'project_id': '5f659a69591f4aa797b25a08fa56564c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-03616388', 'ctest-vn-10983159'], 'port_security_enabled': True, 'description': ''}}
2024-12-23 11:39:10,446 - DEBUG - Response for create_subnet : {'subnet': {'id': '9fe72b0a-0dee-4b9a-a9d4-10cd14d1127e', 'name': '', 'tenant_id': '5f659a69591f4aa797b25a08fa56564c', 'network_id': 'bf12dd21-38c9-4346-87cd-ec05a649a86d', 'ip_version': 4, 'cidr': '151.60.77.0/26', 'allocation_pools': [{'start': '151.60.77.2', 'end': '151.60.77.62'}], 'gateway_ip': '151.60.77.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '151.60.77.2', 'tags': [], 'project_id': '5f659a69591f4aa797b25a08fa56564c'}}
2024-12-23 11:39:10,467 - INFO - Created VN ctest-vn-10983159
2024-12-23 11:39:10,520 - DEBUG - VN ctest-vn-10983159 UUID is bf12dd21-38c9-4346-87cd-ec05a649a86d
2024-12-23 11:39:10,642 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-03616388:ctest-vn-91022606, 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-03616388:ctest-vn-10983159, 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]
2024-12-23 11:39:10,943 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'db13b8ae-992e-4874-9336-a20d8ebbb3c4', 'name': 'ctest-vn-91022606', 'tenant_id': '5f659a69591f4aa797b25a08fa56564c', 'project_id': '5f659a69591f4aa797b25a08fa56564c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9ef99c78-061c-4208-b427-f29477cd7f7c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-03616388', 'ctest-vn-91022606'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-03616388', 'ctest-policy-allow-all-41547169']], 'subnet_ipam': [{'subnet_cidr': '20.224.164.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-12-23 11:39:11,241 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'bf12dd21-38c9-4346-87cd-ec05a649a86d', 'name': 'ctest-vn-10983159', 'tenant_id': '5f659a69591f4aa797b25a08fa56564c', 'project_id': '5f659a69591f4aa797b25a08fa56564c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9fe72b0a-0dee-4b9a-a9d4-10cd14d1127e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-03616388', 'ctest-vn-10983159'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-03616388', 'ctest-policy-allow-all-41547169']], 'subnet_ipam': [{'subnet_cidr': '151.60.77.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-12-23 11:39:11,409 - DEBUG - Requesting: http://10.0.0.44:8082/domains
2024-12-23 11:39:11,755 - DEBUG - Requesting: http://10.0.0.44:8082/domains
2024-12-23 11:39:11,791 - DEBUG - Requesting: http://10.0.0.44:8082/domain/720148ca-78e2-4f54-905c-229612518405
2024-12-23 11:39:11,806 - DEBUG - Requesting: http://10.0.0.44:8082/project/5f659a69-591f-4aa7-97b2-5a08fa56564c
2024-12-23 11:39:11,885 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/db13b8ae-992e-4874-9336-a20d8ebbb3c4
2024-12-23 11:39:11,897 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/db13b8ae-992e-4874-9336-a20d8ebbb3c4
2024-12-23 11:39:11,908 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/06f3d523-6699-4430-beef-f78b1e117078
2024-12-23 11:39:11,916 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/06f3d523-6699-4430-beef-f78b1e117078
2024-12-23 11:39:11,926 - DEBUG - Requesting: http://10.0.0.44:8082/route-target/16eba507-7f86-4819-838f-f0c2945de758
2024-12-23 11:39:11,936 - DEBUG - Route Targets: ['target:64512:8000005']
2024-12-23 11:39:11,936 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/db13b8ae-992e-4874-9336-a20d8ebbb3c4
2024-12-23 11:39:11,947 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/06f3d523-6699-4430-beef-f78b1e117078
2024-12-23 11:39:11,963 - INFO - Verified VN network id 9 for VN db13b8ae-992e-4874-9336-a20d8ebbb3c4
2024-12-23 11:39:11,964 - INFO - Verifications in API Server for VN ctest-vn-91022606 passed
2024-12-23 11:39:11,964 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/db13b8ae-992e-4874-9336-a20d8ebbb3c4
2024-12-23 11:39:11,986 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/06f3d523-6699-4430-beef-f78b1e117078
2024-12-23 11:39:11,994 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/06f3d523-6699-4430-beef-f78b1e117078
2024-12-23 11:39:12,004 - DEBUG - Requesting: http://10.0.0.44:8082/route-target/16eba507-7f86-4819-838f-f0c2945de758
2024-12-23 11:39:12,020 - DEBUG - Control-node 10.0.0.44 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-03616388:ctest-vn-91022606', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-03616388', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15786164178897487988', 'uuid-lslong': '10607844151430722500'}, 'enable': 'true', 'created': '2024-12-23T11:39:09', 'last-modified': '2024-12-23T11:39:10', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.099288'}
2024-12-23 11:39:12,030 - DEBUG - Route Targets: ['target:64512:8000005']
2024-12-23 11:39:12,030 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-91022606 passed
2024-12-23 11:39:12,031 - DEBUG - ====Verifying policy data for ctest-vn-91022606 in API_Server ======
2024-12-23 11:39:12,031 - DEBUG - Requesting: http://10.0.0.44:8082/domains
2024-12-23 11:39:12,039 - DEBUG - Requesting: http://10.0.0.44:8082/domain/720148ca-78e2-4f54-905c-229612518405
2024-12-23 11:39:12,060 - DEBUG - Requesting: http://10.0.0.44:8082/project/5f659a69-591f-4aa7-97b2-5a08fa56564c
2024-12-23 11:39:12,147 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/db13b8ae-992e-4874-9336-a20d8ebbb3c4
2024-12-23 11:39:12,158 - DEBUG - ==>Verifying data for policy with id: 6d5802ae-10fa-4f6a-a544-93ebb72aceaa, fqn: ['default-domain', 'ctest-TestBasicPolicy-03616388', 'ctest-policy-allow-all-41547169']
2024-12-23 11:39:12,158 - INFO - VN ctest-vn-91022606 Policy verification: verify_vn_policy_in_api_server, status: True
2024-12-23 11:39:12,159 - DEBUG - Verifying the vn in opserver
2024-12-23 11:39:12,159 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-03616388:ctest-vn-91022606 virtual network link through opserver 10.0.0.44
2024-12-23 11:39:12,159 - DEBUG - Requesting: http://10.0.0.44:8081/analytics/uves/virtual-networks
2024-12-23 11:39:12,502 - DEBUG - Requesting: http://10.0.0.44:8081/analytics/uves/virtual-networks
2024-12-23 11:39:12,561 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-03616388:ctest-vn-91022606', 'href': 'http://10.0.0.44:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-03616388:ctest-vn-91022606?flat'}
2024-12-23 11:39:12,561 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-03616388:ctest-vn-91022606 is found in opserver
2024-12-23 11:39:12,574 - DEBUG - Do not have enough data to verify VN in agent
2024-12-23 11:39:12,580 - DEBUG - VRF ids for VN ctest-vn-91022606: {}
2024-12-23 11:39:12,580 - DEBUG - Requesting: http://10.0.0.44:8082/domains
2024-12-23 11:39:12,587 - DEBUG - Requesting: http://10.0.0.44:8082/domain/720148ca-78e2-4f54-905c-229612518405
2024-12-23 11:39:12,601 - DEBUG - Requesting: http://10.0.0.44:8082/project/5f659a69-591f-4aa7-97b2-5a08fa56564c
2024-12-23 11:39:12,676 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/bf12dd21-38c9-4346-87cd-ec05a649a86d
2024-12-23 11:39:12,689 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/bf12dd21-38c9-4346-87cd-ec05a649a86d
2024-12-23 11:39:12,700 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/c5e72e3f-55d2-4d1e-bacb-2983c2e9b1b6
2024-12-23 11:39:12,710 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/c5e72e3f-55d2-4d1e-bacb-2983c2e9b1b6
2024-12-23 11:39:12,719 - DEBUG - Requesting: http://10.0.0.44:8082/route-target/5506395a-f236-49a3-b86a-ced5e0722d5d
2024-12-23 11:39:12,726 - DEBUG - Route Targets: ['target:64512:8000006']
2024-12-23 11:39:12,726 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/bf12dd21-38c9-4346-87cd-ec05a649a86d
2024-12-23 11:39:12,737 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/c5e72e3f-55d2-4d1e-bacb-2983c2e9b1b6
2024-12-23 11:39:12,753 - INFO - Verified VN network id 10 for VN bf12dd21-38c9-4346-87cd-ec05a649a86d
2024-12-23 11:39:12,753 - INFO - Verifications in API Server for VN ctest-vn-10983159 passed
2024-12-23 11:39:12,753 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/bf12dd21-38c9-4346-87cd-ec05a649a86d
2024-12-23 11:39:12,764 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/c5e72e3f-55d2-4d1e-bacb-2983c2e9b1b6
2024-12-23 11:39:12,773 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/c5e72e3f-55d2-4d1e-bacb-2983c2e9b1b6
2024-12-23 11:39:12,781 - DEBUG - Requesting: http://10.0.0.44:8082/route-target/5506395a-f236-49a3-b86a-ced5e0722d5d
2024-12-23 11:39:12,796 - DEBUG - Control-node 10.0.0.44 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-03616388:ctest-vn-10983159', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-03616388', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13768310145581400902', 'uuid-lslong': '9785737074354792557'}, 'enable': 'true', 'created': '2024-12-23T11:39:10', 'last-modified': '2024-12-23T11:39:11', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.622432'}
2024-12-23 11:39:12,802 - DEBUG - Route Targets: ['target:64512:8000006']
2024-12-23 11:39:12,803 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-10983159 passed
2024-12-23 11:39:12,803 - DEBUG - ====Verifying policy data for ctest-vn-10983159 in API_Server ======
2024-12-23 11:39:12,803 - DEBUG - Requesting: http://10.0.0.44:8082/domains
2024-12-23 11:39:12,809 - DEBUG - Requesting: http://10.0.0.44:8082/domain/720148ca-78e2-4f54-905c-229612518405
2024-12-23 11:39:12,822 - DEBUG - Requesting: http://10.0.0.44:8082/project/5f659a69-591f-4aa7-97b2-5a08fa56564c
2024-12-23 11:39:12,899 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/bf12dd21-38c9-4346-87cd-ec05a649a86d
2024-12-23 11:39:12,910 - DEBUG - ==>Verifying data for policy with id: 6d5802ae-10fa-4f6a-a544-93ebb72aceaa, fqn: ['default-domain', 'ctest-TestBasicPolicy-03616388', 'ctest-policy-allow-all-41547169']
2024-12-23 11:39:12,910 - INFO - VN ctest-vn-10983159 Policy verification: verify_vn_policy_in_api_server, status: True
2024-12-23 11:39:12,910 - DEBUG - Verifying the vn in opserver
2024-12-23 11:39:12,910 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-03616388:ctest-vn-10983159 virtual network link through opserver 10.0.0.44
2024-12-23 11:39:12,910 - DEBUG - Requesting: http://10.0.0.44:8081/analytics/uves/virtual-networks
2024-12-23 11:39:12,921 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-03616388:ctest-vn-10983159', 'href': 'http://10.0.0.44:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-03616388:ctest-vn-10983159?flat'}
2024-12-23 11:39:12,922 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-03616388:ctest-vn-10983159 is found in opserver
2024-12-23 11:39:12,937 - DEBUG - Do not have enough data to verify VN in agent
2024-12-23 11:39:12,944 - DEBUG - VRF ids for VN ctest-vn-10983159: {}
2024-12-23 11:39:13,003 - DEBUG - Services list from nova: [