2025-01-08 19:55:25,946 - INFO - Domain Default found not creating
2025-01-08 19:55:26,111 - INFO - Project ctest-TestBasicPolicy-27331205 not found, creating it
2025-01-08 19:55:26,598 - INFO - Created Project:ctest-TestBasicPolicy-27331205, ID : 298e0001-7323-45ed-ad6b-a5511dce80f5
2025-01-08 19:55:28,089 - INFO - ================================================================================
2025-01-08 19:55:28,089 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-01-08 19:55:28,089 - 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-01-08 19:55:28,354 - DEBUG - Nothing to compare xmpp stats {'10.0.0.28': {'10.20.0.17': '0'}} with
2025-01-08 19:55:28,354 - INFO - Initial checks done. Running the testcase now
2025-01-08 19:55:28,354 - INFO -
2025-01-08 19:55:28,930 - DEBUG - Response for create_network : {'network': {'id': '483887d6-d807-43d4-8425-29a00996c44f', 'name': 'ctest-vn-00838928', 'tenant_id': '298e0001732345edad6ba5511dce80f5', 'project_id': '298e0001732345edad6ba5511dce80f5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-27331205', 'ctest-vn-00838928'], 'port_security_enabled': True, 'description': ''}}
2025-01-08 19:55:29,084 - DEBUG - Response for create_subnet : {'subnet': {'id': '953ad883-7e4d-4463-af4c-59ccc02c2314', 'name': '', 'tenant_id': '298e0001732345edad6ba5511dce80f5', 'network_id': '483887d6-d807-43d4-8425-29a00996c44f', 'ip_version': 4, 'cidr': '22.5.250.192/26', 'allocation_pools': [{'start': '22.5.250.194', 'end': '22.5.250.254'}], 'gateway_ip': '22.5.250.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '22.5.250.194', 'tags': [], 'project_id': '298e0001732345edad6ba5511dce80f5'}}
2025-01-08 19:55:29,106 - INFO - Created VN ctest-vn-00838928
2025-01-08 19:55:29,161 - DEBUG - VN ctest-vn-00838928 UUID is 483887d6-d807-43d4-8425-29a00996c44f
2025-01-08 19:55:29,496 - DEBUG - Response for create_network : {'network': {'id': 'cf029399-1ff8-47e4-a488-e7d24555fd87', 'name': 'ctest-vn-79268021', 'tenant_id': '298e0001732345edad6ba5511dce80f5', 'project_id': '298e0001732345edad6ba5511dce80f5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-27331205', 'ctest-vn-79268021'], 'port_security_enabled': True, 'description': ''}}
2025-01-08 19:55:29,691 - DEBUG - Response for create_subnet : {'subnet': {'id': '6e170643-1211-41ae-bbc3-527d445ea8bd', 'name': '', 'tenant_id': '298e0001732345edad6ba5511dce80f5', 'network_id': 'cf029399-1ff8-47e4-a488-e7d24555fd87', 'ip_version': 4, 'cidr': '2.100.31.64/26', 'allocation_pools': [{'start': '2.100.31.66', 'end': '2.100.31.126'}], 'gateway_ip': '2.100.31.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2.100.31.66', 'tags': [], 'project_id': '298e0001732345edad6ba5511dce80f5'}}
2025-01-08 19:55:29,710 - INFO - Created VN ctest-vn-79268021
2025-01-08 19:55:29,769 - DEBUG - VN ctest-vn-79268021 UUID is cf029399-1ff8-47e4-a488-e7d24555fd87
2025-01-08 19:55:29,890 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-27331205:ctest-vn-00838928, 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-27331205:ctest-vn-79268021, 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-01-08 19:55:30,224 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '483887d6-d807-43d4-8425-29a00996c44f', 'name': 'ctest-vn-00838928', 'tenant_id': '298e0001732345edad6ba5511dce80f5', 'project_id': '298e0001732345edad6ba5511dce80f5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['953ad883-7e4d-4463-af4c-59ccc02c2314'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-27331205', 'ctest-vn-00838928'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-27331205', 'ctest-policy-allow-all-44853845']], 'subnet_ipam': [{'subnet_cidr': '22.5.250.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-08 19:55:30,490 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'cf029399-1ff8-47e4-a488-e7d24555fd87', 'name': 'ctest-vn-79268021', 'tenant_id': '298e0001732345edad6ba5511dce80f5', 'project_id': '298e0001732345edad6ba5511dce80f5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6e170643-1211-41ae-bbc3-527d445ea8bd'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-27331205', 'ctest-vn-79268021'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-27331205', 'ctest-policy-allow-all-44853845']], 'subnet_ipam': [{'subnet_cidr': '2.100.31.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-08 19:55:30,657 - DEBUG - Requesting: http://10.0.0.28:8082/domains
2025-01-08 19:55:30,958 - DEBUG - Requesting: http://10.0.0.28:8082/domains
2025-01-08 19:55:30,988 - DEBUG - Requesting: http://10.0.0.28:8082/domain/d1a06cc7-a618-4d5f-8819-9626b2748811
2025-01-08 19:55:31,003 - DEBUG - Requesting: http://10.0.0.28:8082/project/298e0001-7323-45ed-ad6b-a5511dce80f5
2025-01-08 19:55:31,087 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/483887d6-d807-43d4-8425-29a00996c44f
2025-01-08 19:55:31,101 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/483887d6-d807-43d4-8425-29a00996c44f
2025-01-08 19:55:31,113 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/c7c335d8-83e0-4cfb-b2a8-03fa06682ada
2025-01-08 19:55:31,121 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/c7c335d8-83e0-4cfb-b2a8-03fa06682ada
2025-01-08 19:55:31,129 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/050e66f6-378d-4b7e-99b0-16ae33d91760
2025-01-08 19:55:31,136 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-08 19:55:31,136 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/483887d6-d807-43d4-8425-29a00996c44f
2025-01-08 19:55:31,146 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/c7c335d8-83e0-4cfb-b2a8-03fa06682ada
2025-01-08 19:55:31,160 - INFO - Verified VN network id 9 for VN 483887d6-d807-43d4-8425-29a00996c44f
2025-01-08 19:55:31,161 - INFO - Verifications in API Server for VN ctest-vn-00838928 passed
2025-01-08 19:55:31,161 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/483887d6-d807-43d4-8425-29a00996c44f
2025-01-08 19:55:31,172 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/c7c335d8-83e0-4cfb-b2a8-03fa06682ada
2025-01-08 19:55:31,182 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/c7c335d8-83e0-4cfb-b2a8-03fa06682ada
2025-01-08 19:55:31,191 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/050e66f6-378d-4b7e-99b0-16ae33d91760
2025-01-08 19:55:31,204 - DEBUG - Control-node 10.0.0.28 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-27331205:ctest-vn-00838928', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-27331205', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5204058726243714004', 'uuid-lslong': '9522062754477163599'}, 'enable': 'true', 'created': '2025-01-08T19:55:28', 'last-modified': '2025-01-08T19:55:30', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.012429'}
2025-01-08 19:55:31,212 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-08 19:55:31,212 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-00838928 passed
2025-01-08 19:55:31,212 - DEBUG - ====Verifying policy data for ctest-vn-00838928 in API_Server ======
2025-01-08 19:55:31,212 - DEBUG - Requesting: http://10.0.0.28:8082/domains
2025-01-08 19:55:31,219 - DEBUG - Requesting: http://10.0.0.28:8082/domain/d1a06cc7-a618-4d5f-8819-9626b2748811
2025-01-08 19:55:31,234 - DEBUG - Requesting: http://10.0.0.28:8082/project/298e0001-7323-45ed-ad6b-a5511dce80f5
2025-01-08 19:55:31,309 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/483887d6-d807-43d4-8425-29a00996c44f
2025-01-08 19:55:31,322 - DEBUG - ==>Verifying data for policy with id: c4d94665-dd33-4acc-949b-3db10dba8eb9, fqn: ['default-domain', 'ctest-TestBasicPolicy-27331205', 'ctest-policy-allow-all-44853845']
2025-01-08 19:55:31,322 - INFO - VN ctest-vn-00838928 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-08 19:55:31,322 - DEBUG - Verifying the vn in opserver
2025-01-08 19:55:31,322 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-27331205:ctest-vn-00838928 virtual network link through opserver 10.0.0.28
2025-01-08 19:55:31,322 - DEBUG - Requesting: http://10.0.0.28:8081/analytics/uves/virtual-networks
2025-01-08 19:55:31,617 - DEBUG - Requesting: http://10.0.0.28:8081/analytics/uves/virtual-networks
2025-01-08 19:55:31,681 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-27331205:ctest-vn-00838928', 'href': 'http://10.0.0.28:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-27331205:ctest-vn-00838928?flat'}
2025-01-08 19:55:31,681 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-27331205:ctest-vn-00838928 is found in opserver
2025-01-08 19:55:31,696 - DEBUG - Do not have enough data to verify VN in agent
2025-01-08 19:55:31,703 - DEBUG - VRF ids for VN ctest-vn-00838928: {}
2025-01-08 19:55:31,703 - DEBUG - Requesting: http://10.0.0.28:8082/domains
2025-01-08 19:55:31,710 - DEBUG - Requesting: http://10.0.0.28:8082/domain/d1a06cc7-a618-4d5f-8819-9626b2748811
2025-01-08 19:55:31,723 - DEBUG - Requesting: http://10.0.0.28:8082/project/298e0001-7323-45ed-ad6b-a5511dce80f5
2025-01-08 19:55:31,799 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/cf029399-1ff8-47e4-a488-e7d24555fd87
2025-01-08 19:55:31,814 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/cf029399-1ff8-47e4-a488-e7d24555fd87
2025-01-08 19:55:31,829 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/6a5e9aef-2256-4782-9e0f-d9cb1e56bf53
2025-01-08 19:55:31,840 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/6a5e9aef-2256-4782-9e0f-d9cb1e56bf53
2025-01-08 19:55:31,849 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/f4b931f9-17cb-4380-9b77-a1950644482b
2025-01-08 19:55:31,860 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-08 19:55:31,860 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/cf029399-1ff8-47e4-a488-e7d24555fd87
2025-01-08 19:55:31,874 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/6a5e9aef-2256-4782-9e0f-d9cb1e56bf53
2025-01-08 19:55:31,892 - INFO - Verified VN network id 10 for VN cf029399-1ff8-47e4-a488-e7d24555fd87
2025-01-08 19:55:31,892 - INFO - Verifications in API Server for VN ctest-vn-79268021 passed
2025-01-08 19:55:31,892 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/cf029399-1ff8-47e4-a488-e7d24555fd87
2025-01-08 19:55:31,903 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/6a5e9aef-2256-4782-9e0f-d9cb1e56bf53
2025-01-08 19:55:31,912 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/6a5e9aef-2256-4782-9e0f-d9cb1e56bf53
2025-01-08 19:55:31,923 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/f4b931f9-17cb-4380-9b77-a1950644482b
2025-01-08 19:55:31,940 - DEBUG - Control-node 10.0.0.28 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-27331205:ctest-vn-79268021', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-27331205', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14916647201680148452', 'uuid-lslong': '11855980909345242503'}, 'enable': 'true', 'created': '2025-01-08T19:55:29', 'last-modified': '2025-01-08T19:55:30', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.480899'}
2025-01-08 19:55:31,949 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-08 19:55:31,949 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-79268021 passed
2025-01-08 19:55:31,949 - DEBUG - ====Verifying policy data for ctest-vn-79268021 in API_Server ======
2025-01-08 19:55:31,949 - DEBUG - Requesting: http://10.0.0.28:8082/domains
2025-01-08 19:55:31,956 - DEBUG - Requesting: http://10.0.0.28:8082/domain/d1a06cc7-a618-4d5f-8819-9626b2748811
2025-01-08 19:55:31,969 - DEBUG - Requesting: http://10.0.0.28:8082/project/298e0001-7323-45ed-ad6b-a5511dce80f5
2025-01-08 19:55:32,052 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/cf029399-1ff8-47e4-a488-e7d24555fd87
2025-01-08 19:55:32,065 - DEBUG - ==>Verifying data for policy with id: c4d94665-dd33-4acc-949b-3db10dba8eb9, fqn: ['default-domain', 'ctest-TestBasicPolicy-27331205', 'ctest-policy-allow-all-44853845']
2025-01-08 19:55:32,065 - INFO - VN ctest-vn-79268021 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-08 19:55:32,065 - DEBUG - Verifying the vn in opserver
2025-01-08 19:55:32,065 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-27331205:ctest-vn-79268021 virtual network link through opserver 10.0.0.28
2025-01-08 19:55:32,065 - DEBUG - Requesting: http://10.0.0.28:8081/analytics/uves/virtual-networks
2025-01-08 19:55:32,077 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-27331205:ctest-vn-79268021', 'href': 'http://10.0.0.28:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-27331205:ctest-vn-79268021?flat'}
2025-01-08 19:55:32,077 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-27331205:ctest-vn-79268021 is found in opserver
2025-01-08 19:55:32,089 - DEBUG - Do not have enough data to verify VN in agent
2025-01-08 19:55:32,094 - DEBUG - VRF ids for VN ctest-vn-79268021: {}
2025-01-08 19:55:32,160 - DEBUG - Services list from nova: [