2024-09-12 22:13:39,526 - INFO - Domain Default found not creating
2024-09-12 22:13:40,046 - INFO - Project ctest-TestBasicPolicy-13255807 not found, creating it
2024-09-12 22:13:40,969 - INFO - Created Project:ctest-TestBasicPolicy-13255807, ID : 06c50859-6eb1-4308-b7c9-0bebdcec96a5
2024-09-12 22:13:43,606 - INFO - ================================================================================
2024-09-12 22:13:43,607 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-09-12 22:13:43,607 - 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-09-12 22:13:43,941 - DEBUG - Nothing to compare xmpp stats {'10.0.0.35': {'10.20.0.23': '0'}} with
2024-09-12 22:13:43,941 - INFO - Initial checks done. Running the testcase now
2024-09-12 22:13:43,941 - INFO -
2024-09-12 22:13:44,910 - DEBUG - Response for create_network : {'network': {'id': '268bd798-7c44-4a3f-8546-1f0cffda54df', 'name': 'ctest-vn-54081800', 'tenant_id': '06c508596eb14308b7c90bebdcec96a5', 'project_id': '06c508596eb14308b7c90bebdcec96a5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-13255807', 'ctest-vn-54081800'], 'port_security_enabled': True, 'description': ''}}
2024-09-12 22:13:45,236 - DEBUG - Response for create_subnet : {'subnet': {'id': '309686b5-8f0a-45d9-8c0f-f67896cbaf6f', 'name': '', 'tenant_id': '06c508596eb14308b7c90bebdcec96a5', 'network_id': '268bd798-7c44-4a3f-8546-1f0cffda54df', 'ip_version': 4, 'cidr': '19.167.254.192/26', 'allocation_pools': [{'start': '19.167.254.194', 'end': '19.167.254.254'}], 'gateway_ip': '19.167.254.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '19.167.254.194', 'tags': [], 'project_id': '06c508596eb14308b7c90bebdcec96a5'}}
2024-09-12 22:13:45,270 - INFO - Created VN ctest-vn-54081800
2024-09-12 22:13:45,339 - DEBUG - VN ctest-vn-54081800 UUID is 268bd798-7c44-4a3f-8546-1f0cffda54df
2024-09-12 22:13:45,959 - DEBUG - Response for create_network : {'network': {'id': 'ecb1cc5f-36a7-4c0d-aa95-e54abd69439e', 'name': 'ctest-vn-46046460', 'tenant_id': '06c508596eb14308b7c90bebdcec96a5', 'project_id': '06c508596eb14308b7c90bebdcec96a5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-13255807', 'ctest-vn-46046460'], 'port_security_enabled': True, 'description': ''}}
2024-09-12 22:13:46,175 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a48c171f-e48c-462e-a89f-ae553812f222', 'name': '', 'tenant_id': '06c508596eb14308b7c90bebdcec96a5', 'network_id': 'ecb1cc5f-36a7-4c0d-aa95-e54abd69439e', 'ip_version': 4, 'cidr': '186.78.89.64/26', 'allocation_pools': [{'start': '186.78.89.66', 'end': '186.78.89.126'}], 'gateway_ip': '186.78.89.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '186.78.89.66', 'tags': [], 'project_id': '06c508596eb14308b7c90bebdcec96a5'}}
2024-09-12 22:13:46,199 - INFO - Created VN ctest-vn-46046460
2024-09-12 22:13:46,263 - DEBUG - VN ctest-vn-46046460 UUID is ecb1cc5f-36a7-4c0d-aa95-e54abd69439e
2024-09-12 22:13:46,492 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-13255807:ctest-vn-54081800, 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-13255807:ctest-vn-46046460, 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-09-12 22:13:46,988 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '268bd798-7c44-4a3f-8546-1f0cffda54df', 'name': 'ctest-vn-54081800', 'tenant_id': '06c508596eb14308b7c90bebdcec96a5', 'project_id': '06c508596eb14308b7c90bebdcec96a5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['309686b5-8f0a-45d9-8c0f-f67896cbaf6f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-13255807', 'ctest-vn-54081800'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-13255807', 'ctest-policy-allow-all-32474993']], 'subnet_ipam': [{'subnet_cidr': '19.167.254.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-12 22:13:47,434 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ecb1cc5f-36a7-4c0d-aa95-e54abd69439e', 'name': 'ctest-vn-46046460', 'tenant_id': '06c508596eb14308b7c90bebdcec96a5', 'project_id': '06c508596eb14308b7c90bebdcec96a5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a48c171f-e48c-462e-a89f-ae553812f222'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-13255807', 'ctest-vn-46046460'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-13255807', 'ctest-policy-allow-all-32474993']], 'subnet_ipam': [{'subnet_cidr': '186.78.89.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-12 22:13:47,610 - DEBUG - Requesting: http://10.0.0.35:8082/domains
2024-09-12 22:13:47,923 - DEBUG - Requesting: http://10.0.0.35:8082/domains
2024-09-12 22:13:47,979 - DEBUG - Requesting: http://10.0.0.35:8082/domain/71091110-ed72-4793-bdee-1a03fa231daa
2024-09-12 22:13:48,029 - DEBUG - Requesting: http://10.0.0.35:8082/project/06c50859-6eb1-4308-b7c9-0bebdcec96a5
2024-09-12 22:13:48,139 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/268bd798-7c44-4a3f-8546-1f0cffda54df
2024-09-12 22:13:48,177 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/268bd798-7c44-4a3f-8546-1f0cffda54df
2024-09-12 22:13:48,216 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/fa55bd1d-ad78-428b-ab4f-6abadec793f4
2024-09-12 22:13:48,251 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/fa55bd1d-ad78-428b-ab4f-6abadec793f4
2024-09-12 22:13:48,278 - DEBUG - Requesting: http://10.0.0.35:8082/route-target/e3be80e9-5c88-4065-b663-68310ae902c9
2024-09-12 22:13:48,305 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-12 22:13:48,306 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/268bd798-7c44-4a3f-8546-1f0cffda54df
2024-09-12 22:13:48,358 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/fa55bd1d-ad78-428b-ab4f-6abadec793f4
2024-09-12 22:13:48,428 - INFO - Verified VN network id 7 for VN 268bd798-7c44-4a3f-8546-1f0cffda54df
2024-09-12 22:13:48,428 - INFO - Verifications in API Server for VN ctest-vn-54081800 passed
2024-09-12 22:13:48,429 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/268bd798-7c44-4a3f-8546-1f0cffda54df
2024-09-12 22:13:48,479 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/fa55bd1d-ad78-428b-ab4f-6abadec793f4
2024-09-12 22:13:48,506 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/fa55bd1d-ad78-428b-ab4f-6abadec793f4
2024-09-12 22:13:48,534 - DEBUG - Requesting: http://10.0.0.35:8082/route-target/e3be80e9-5c88-4065-b663-68310ae902c9
2024-09-12 22:13:48,577 - DEBUG - Control-node 10.0.0.35 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-13255807:ctest-vn-54081800', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-13255807', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2777550645123893823', 'uuid-lslong': '9603397396106728671'}, 'enable': 'true', 'created': '2024-09-12T22:13:44', 'last-modified': '2024-09-12T22:13:46', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.638261'}
2024-09-12 22:13:48,600 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-12 22:13:48,600 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-54081800 passed
2024-09-12 22:13:48,601 - DEBUG - ====Verifying policy data for ctest-vn-54081800 in API_Server ======
2024-09-12 22:13:48,601 - DEBUG - Requesting: http://10.0.0.35:8082/domains
2024-09-12 22:13:48,620 - DEBUG - Requesting: http://10.0.0.35:8082/domain/71091110-ed72-4793-bdee-1a03fa231daa
2024-09-12 22:13:48,660 - DEBUG - Requesting: http://10.0.0.35:8082/project/06c50859-6eb1-4308-b7c9-0bebdcec96a5
2024-09-12 22:13:48,828 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/268bd798-7c44-4a3f-8546-1f0cffda54df
2024-09-12 22:13:48,874 - DEBUG - ==>Verifying data for policy with id: 3129c329-e71b-459f-be4d-b97bc4b6894f, fqn: ['default-domain', 'ctest-TestBasicPolicy-13255807', 'ctest-policy-allow-all-32474993']
2024-09-12 22:13:48,874 - INFO - VN ctest-vn-54081800 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-12 22:13:48,874 - DEBUG - Verifying the vn in opserver
2024-09-12 22:13:48,874 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-13255807:ctest-vn-54081800 virtual network link through opserver 10.0.0.35
2024-09-12 22:13:48,875 - DEBUG - Requesting: http://10.0.0.35:8081/analytics/uves/virtual-networks
2024-09-12 22:13:49,194 - DEBUG - Requesting: http://10.0.0.35:8081/analytics/uves/virtual-networks
2024-09-12 22:13:49,319 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-13255807:ctest-vn-54081800', 'href': 'http://10.0.0.35:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-13255807:ctest-vn-54081800?flat'}
2024-09-12 22:13:49,319 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-13255807:ctest-vn-54081800 is found in opserver
2024-09-12 22:13:49,351 - DEBUG - Do not have enough data to verify VN in agent
2024-09-12 22:13:49,363 - DEBUG - VRF ids for VN ctest-vn-54081800: {}
2024-09-12 22:13:49,363 - DEBUG - Requesting: http://10.0.0.35:8082/domains
2024-09-12 22:13:49,376 - DEBUG - Requesting: http://10.0.0.35:8082/domain/71091110-ed72-4793-bdee-1a03fa231daa
2024-09-12 22:13:49,411 - DEBUG - Requesting: http://10.0.0.35:8082/project/06c50859-6eb1-4308-b7c9-0bebdcec96a5
2024-09-12 22:13:49,569 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/ecb1cc5f-36a7-4c0d-aa95-e54abd69439e
2024-09-12 22:13:49,626 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/ecb1cc5f-36a7-4c0d-aa95-e54abd69439e
2024-09-12 22:13:49,672 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/04a810ba-266c-4984-bb60-4f669d12af9c
2024-09-12 22:13:49,698 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/04a810ba-266c-4984-bb60-4f669d12af9c
2024-09-12 22:13:49,719 - DEBUG - Requesting: http://10.0.0.35:8082/route-target/f35622f9-057c-4323-b394-3550ee31c6a1
2024-09-12 22:13:49,741 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-12 22:13:49,741 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/ecb1cc5f-36a7-4c0d-aa95-e54abd69439e
2024-09-12 22:13:49,777 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/04a810ba-266c-4984-bb60-4f669d12af9c
2024-09-12 22:13:49,831 - INFO - Verified VN network id 8 for VN ecb1cc5f-36a7-4c0d-aa95-e54abd69439e
2024-09-12 22:13:49,831 - INFO - Verifications in API Server for VN ctest-vn-46046460 passed
2024-09-12 22:13:49,832 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/ecb1cc5f-36a7-4c0d-aa95-e54abd69439e
2024-09-12 22:13:49,873 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/04a810ba-266c-4984-bb60-4f669d12af9c
2024-09-12 22:13:49,902 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/04a810ba-266c-4984-bb60-4f669d12af9c
2024-09-12 22:13:49,931 - DEBUG - Requesting: http://10.0.0.35:8082/route-target/f35622f9-057c-4323-b394-3550ee31c6a1
2024-09-12 22:13:49,974 - DEBUG - Control-node 10.0.0.35 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-13255807:ctest-vn-46046460', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-13255807', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17055637973139672077', 'uuid-lslong': '12291982867145769886'}, 'enable': 'true', 'created': '2024-09-12T22:13:45', 'last-modified': '2024-09-12T22:13:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.629717'}
2024-09-12 22:13:49,995 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-12 22:13:49,996 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-46046460 passed
2024-09-12 22:13:49,996 - DEBUG - ====Verifying policy data for ctest-vn-46046460 in API_Server ======
2024-09-12 22:13:49,996 - DEBUG - Requesting: http://10.0.0.35:8082/domains
2024-09-12 22:13:50,016 - DEBUG - Requesting: http://10.0.0.35:8082/domain/71091110-ed72-4793-bdee-1a03fa231daa
2024-09-12 22:13:50,062 - DEBUG - Requesting: http://10.0.0.35:8082/project/06c50859-6eb1-4308-b7c9-0bebdcec96a5
2024-09-12 22:13:50,175 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/ecb1cc5f-36a7-4c0d-aa95-e54abd69439e
2024-09-12 22:13:50,198 - DEBUG - ==>Verifying data for policy with id: 3129c329-e71b-459f-be4d-b97bc4b6894f, fqn: ['default-domain', 'ctest-TestBasicPolicy-13255807', 'ctest-policy-allow-all-32474993']
2024-09-12 22:13:50,198 - INFO - VN ctest-vn-46046460 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-12 22:13:50,198 - DEBUG - Verifying the vn in opserver
2024-09-12 22:13:50,198 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-13255807:ctest-vn-46046460 virtual network link through opserver 10.0.0.35
2024-09-12 22:13:50,198 - DEBUG - Requesting: http://10.0.0.35:8081/analytics/uves/virtual-networks
2024-09-12 22:13:50,218 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-13255807:ctest-vn-46046460', 'href': 'http://10.0.0.35:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-13255807:ctest-vn-46046460?flat'}
2024-09-12 22:13:50,218 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-13255807:ctest-vn-46046460 is found in opserver
2024-09-12 22:13:50,235 - DEBUG - Do not have enough data to verify VN in agent
2024-09-12 22:13:50,248 - DEBUG - VRF ids for VN ctest-vn-46046460: {}
2024-09-12 22:13:50,362 - DEBUG - Services list from nova: [