2024-10-26 18:25:41,418 - INFO - Domain Default found not creating
2024-10-26 18:25:41,609 - INFO - Project ctest-TestBasicPolicy-43474375 not found, creating it
2024-10-26 18:25:42,145 - INFO - Created Project:ctest-TestBasicPolicy-43474375, ID : 68056034-9340-4ac8-9489-3a73d1352571
2024-10-26 18:25:43,764 - INFO - ================================================================================
2024-10-26 18:25:43,764 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-10-26 18:25:43,765 - 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-10-26 18:25:44,022 - DEBUG - Nothing to compare xmpp stats {'10.0.0.23': {'10.20.0.13': '0'}} with
2024-10-26 18:25:44,022 - INFO - Initial checks done. Running the testcase now
2024-10-26 18:25:44,022 - INFO -
2024-10-26 18:25:44,647 - DEBUG - Response for create_network : {'network': {'id': '70cb3698-0b09-48c2-ab2f-7ccbe48af013', 'name': 'ctest-vn-69796552', 'tenant_id': '6805603493404ac894893a73d1352571', 'project_id': '6805603493404ac894893a73d1352571', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43474375', 'ctest-vn-69796552'], 'port_security_enabled': True, 'description': ''}}
2024-10-26 18:25:44,846 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f4c74584-42e2-430c-86f8-60ba79bbb3d4', 'name': '', 'tenant_id': '6805603493404ac894893a73d1352571', 'network_id': '70cb3698-0b09-48c2-ab2f-7ccbe48af013', 'ip_version': 4, 'cidr': '218.73.138.64/26', 'allocation_pools': [{'start': '218.73.138.66', 'end': '218.73.138.126'}], 'gateway_ip': '218.73.138.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '218.73.138.66', 'tags': [], 'project_id': '6805603493404ac894893a73d1352571'}}
2024-10-26 18:25:44,871 - INFO - Created VN ctest-vn-69796552
2024-10-26 18:25:44,931 - DEBUG - VN ctest-vn-69796552 UUID is 70cb3698-0b09-48c2-ab2f-7ccbe48af013
2024-10-26 18:25:45,277 - DEBUG - Response for create_network : {'network': {'id': 'f527e484-f030-4203-a1a7-8d85f64451b0', 'name': 'ctest-vn-54967372', 'tenant_id': '6805603493404ac894893a73d1352571', 'project_id': '6805603493404ac894893a73d1352571', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43474375', 'ctest-vn-54967372'], 'port_security_enabled': True, 'description': ''}}
2024-10-26 18:25:45,533 - DEBUG - Response for create_subnet : {'subnet': {'id': '4b8fa75f-a1eb-44d6-b764-71b53102b4ca', 'name': '', 'tenant_id': '6805603493404ac894893a73d1352571', 'network_id': 'f527e484-f030-4203-a1a7-8d85f64451b0', 'ip_version': 4, 'cidr': '222.16.214.0/26', 'allocation_pools': [{'start': '222.16.214.2', 'end': '222.16.214.62'}], 'gateway_ip': '222.16.214.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '222.16.214.2', 'tags': [], 'project_id': '6805603493404ac894893a73d1352571'}}
2024-10-26 18:25:45,556 - INFO - Created VN ctest-vn-54967372
2024-10-26 18:25:45,615 - DEBUG - VN ctest-vn-54967372 UUID is f527e484-f030-4203-a1a7-8d85f64451b0
2024-10-26 18:25:45,725 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-43474375:ctest-vn-69796552, 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-43474375:ctest-vn-54967372, 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-10-26 18:25:46,108 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '70cb3698-0b09-48c2-ab2f-7ccbe48af013', 'name': 'ctest-vn-69796552', 'tenant_id': '6805603493404ac894893a73d1352571', 'project_id': '6805603493404ac894893a73d1352571', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f4c74584-42e2-430c-86f8-60ba79bbb3d4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43474375', 'ctest-vn-69796552'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-43474375', 'ctest-policy-allow-all-81645443']], 'subnet_ipam': [{'subnet_cidr': '218.73.138.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-10-26 18:25:46,427 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f527e484-f030-4203-a1a7-8d85f64451b0', 'name': 'ctest-vn-54967372', 'tenant_id': '6805603493404ac894893a73d1352571', 'project_id': '6805603493404ac894893a73d1352571', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4b8fa75f-a1eb-44d6-b764-71b53102b4ca'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43474375', 'ctest-vn-54967372'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-43474375', 'ctest-policy-allow-all-81645443']], 'subnet_ipam': [{'subnet_cidr': '222.16.214.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-10-26 18:25:46,575 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2024-10-26 18:25:46,890 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2024-10-26 18:25:46,927 - DEBUG - Requesting: http://10.0.0.23:8082/domain/35daf014-ccfb-422d-806b-5407e865394c
2024-10-26 18:25:46,942 - DEBUG - Requesting: http://10.0.0.23:8082/project/68056034-9340-4ac8-9489-3a73d1352571
2024-10-26 18:25:47,040 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/70cb3698-0b09-48c2-ab2f-7ccbe48af013
2024-10-26 18:25:47,056 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/70cb3698-0b09-48c2-ab2f-7ccbe48af013
2024-10-26 18:25:47,071 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/1fe2319e-4742-4a4d-9f73-1d1bb71ff6da
2024-10-26 18:25:47,081 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/1fe2319e-4742-4a4d-9f73-1d1bb71ff6da
2024-10-26 18:25:47,090 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/13d697a7-e026-4228-888e-96d7caa1b4f0
2024-10-26 18:25:47,099 - DEBUG - Route Targets: ['target:64512:8000005']
2024-10-26 18:25:47,099 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/70cb3698-0b09-48c2-ab2f-7ccbe48af013
2024-10-26 18:25:47,113 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/1fe2319e-4742-4a4d-9f73-1d1bb71ff6da
2024-10-26 18:25:47,135 - INFO - Verified VN network id 8 for VN 70cb3698-0b09-48c2-ab2f-7ccbe48af013
2024-10-26 18:25:47,135 - INFO - Verifications in API Server for VN ctest-vn-69796552 passed
2024-10-26 18:25:47,135 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/70cb3698-0b09-48c2-ab2f-7ccbe48af013
2024-10-26 18:25:47,152 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/1fe2319e-4742-4a4d-9f73-1d1bb71ff6da
2024-10-26 18:25:47,162 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/1fe2319e-4742-4a4d-9f73-1d1bb71ff6da
2024-10-26 18:25:47,172 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/13d697a7-e026-4228-888e-96d7caa1b4f0
2024-10-26 18:25:47,188 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-43474375:ctest-vn-69796552', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-43474375', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8127649979168278722', 'uuid-lslong': '12335215119545593875'}, 'enable': 'true', 'created': '2024-10-26T18:25:44', 'last-modified': '2024-10-26T18:25:46', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.130465'}
2024-10-26 18:25:47,195 - DEBUG - Route Targets: ['target:64512:8000005']
2024-10-26 18:25:47,195 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-69796552 passed
2024-10-26 18:25:47,195 - DEBUG - ====Verifying policy data for ctest-vn-69796552 in API_Server ======
2024-10-26 18:25:47,195 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2024-10-26 18:25:47,202 - DEBUG - Requesting: http://10.0.0.23:8082/domain/35daf014-ccfb-422d-806b-5407e865394c
2024-10-26 18:25:47,216 - DEBUG - Requesting: http://10.0.0.23:8082/project/68056034-9340-4ac8-9489-3a73d1352571
2024-10-26 18:25:47,309 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/70cb3698-0b09-48c2-ab2f-7ccbe48af013
2024-10-26 18:25:47,325 - DEBUG - ==>Verifying data for policy with id: bdad5f14-3b3e-4f30-8f36-2089ae3d13ec, fqn: ['default-domain', 'ctest-TestBasicPolicy-43474375', 'ctest-policy-allow-all-81645443']
2024-10-26 18:25:47,325 - INFO - VN ctest-vn-69796552 Policy verification: verify_vn_policy_in_api_server, status: True
2024-10-26 18:25:47,325 - DEBUG - Verifying the vn in opserver
2024-10-26 18:25:47,325 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-43474375:ctest-vn-69796552 virtual network link through opserver 10.0.0.23
2024-10-26 18:25:47,326 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks
2024-10-26 18:25:47,631 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks
2024-10-26 18:25:47,703 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-43474375:ctest-vn-69796552', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-43474375:ctest-vn-69796552?flat'}
2024-10-26 18:25:47,703 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-43474375:ctest-vn-69796552 is found in opserver
2024-10-26 18:25:47,722 - DEBUG - Do not have enough data to verify VN in agent
2024-10-26 18:25:47,732 - DEBUG - VRF ids for VN ctest-vn-69796552: {}
2024-10-26 18:25:47,732 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2024-10-26 18:25:47,741 - DEBUG - Requesting: http://10.0.0.23:8082/domain/35daf014-ccfb-422d-806b-5407e865394c
2024-10-26 18:25:47,762 - DEBUG - Requesting: http://10.0.0.23:8082/project/68056034-9340-4ac8-9489-3a73d1352571
2024-10-26 18:25:47,855 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/f527e484-f030-4203-a1a7-8d85f64451b0
2024-10-26 18:25:47,877 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/f527e484-f030-4203-a1a7-8d85f64451b0
2024-10-26 18:25:47,894 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/8121532b-ef1a-4bb4-908e-d21306ccae62
2024-10-26 18:25:47,908 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/8121532b-ef1a-4bb4-908e-d21306ccae62
2024-10-26 18:25:47,926 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/cc96367a-c21d-48e7-b474-1cd128e1f555
2024-10-26 18:25:47,939 - DEBUG - Route Targets: ['target:64512:8000006']
2024-10-26 18:25:47,940 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/f527e484-f030-4203-a1a7-8d85f64451b0
2024-10-26 18:25:47,960 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/8121532b-ef1a-4bb4-908e-d21306ccae62
2024-10-26 18:25:47,992 - INFO - Verified VN network id 9 for VN f527e484-f030-4203-a1a7-8d85f64451b0
2024-10-26 18:25:47,992 - INFO - Verifications in API Server for VN ctest-vn-54967372 passed
2024-10-26 18:25:47,992 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/f527e484-f030-4203-a1a7-8d85f64451b0
2024-10-26 18:25:48,007 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/8121532b-ef1a-4bb4-908e-d21306ccae62
2024-10-26 18:25:48,020 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/8121532b-ef1a-4bb4-908e-d21306ccae62
2024-10-26 18:25:48,033 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/cc96367a-c21d-48e7-b474-1cd128e1f555
2024-10-26 18:25:48,056 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-43474375:ctest-vn-54967372', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-43474375', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17665339323000570371', 'uuid-lslong': '11648434567718916528'}, 'enable': 'true', 'created': '2024-10-26T18:25:45', 'last-modified': '2024-10-26T18:25:46', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.714064'}
2024-10-26 18:25:48,066 - DEBUG - Route Targets: ['target:64512:8000006']
2024-10-26 18:25:48,066 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-54967372 passed
2024-10-26 18:25:48,066 - DEBUG - ====Verifying policy data for ctest-vn-54967372 in API_Server ======
2024-10-26 18:25:48,066 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2024-10-26 18:25:48,075 - DEBUG - Requesting: http://10.0.0.23:8082/domain/35daf014-ccfb-422d-806b-5407e865394c
2024-10-26 18:25:48,094 - DEBUG - Requesting: http://10.0.0.23:8082/project/68056034-9340-4ac8-9489-3a73d1352571
2024-10-26 18:25:48,189 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/f527e484-f030-4203-a1a7-8d85f64451b0
2024-10-26 18:25:48,205 - DEBUG - ==>Verifying data for policy with id: bdad5f14-3b3e-4f30-8f36-2089ae3d13ec, fqn: ['default-domain', 'ctest-TestBasicPolicy-43474375', 'ctest-policy-allow-all-81645443']
2024-10-26 18:25:48,205 - INFO - VN ctest-vn-54967372 Policy verification: verify_vn_policy_in_api_server, status: True
2024-10-26 18:25:48,205 - DEBUG - Verifying the vn in opserver
2024-10-26 18:25:48,206 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-43474375:ctest-vn-54967372 virtual network link through opserver 10.0.0.23
2024-10-26 18:25:48,206 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks
2024-10-26 18:25:48,219 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-43474375:ctest-vn-54967372', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-43474375:ctest-vn-54967372?flat'}
2024-10-26 18:25:48,219 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-43474375:ctest-vn-54967372 is found in opserver
2024-10-26 18:25:48,236 - DEBUG - Do not have enough data to verify VN in agent
2024-10-26 18:25:48,243 - DEBUG - VRF ids for VN ctest-vn-54967372: {}
2024-10-26 18:25:48,317 - DEBUG - Services list from nova: [