2024-09-17 20:23:09,579 - INFO - Domain Default found not creating
2024-09-17 20:23:09,757 - INFO - Project ctest-TestBasicPolicy-31488806 not found, creating it
2024-09-17 20:23:10,257 - INFO - Created Project:ctest-TestBasicPolicy-31488806, ID : e579bb09-a86e-4708-87c9-7b3b454c8344
2024-09-17 20:23:11,781 - INFO - ================================================================================
2024-09-17 20:23:11,781 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-09-17 20:23:11,781 - 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-17 20:23:12,046 - DEBUG - Nothing to compare xmpp stats {'10.0.0.77': {'10.20.0.24': '0'}} with
2024-09-17 20:23:12,046 - INFO - Initial checks done. Running the testcase now
2024-09-17 20:23:12,046 - INFO -
2024-09-17 20:23:12,619 - DEBUG - Response for create_network : {'network': {'id': '3603e6a2-eedf-41fc-8a0a-3aa5e363f5ac', 'name': 'ctest-vn-06908520', 'tenant_id': 'e579bb09a86e470887c97b3b454c8344', 'project_id': 'e579bb09a86e470887c97b3b454c8344', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-31488806', 'ctest-vn-06908520'], 'port_security_enabled': True, 'description': ''}}
2024-09-17 20:23:12,800 - DEBUG - Response for create_subnet : {'subnet': {'id': '41fd0f9e-f542-4f8d-b739-151fbe6b8b6c', 'name': '', 'tenant_id': 'e579bb09a86e470887c97b3b454c8344', 'network_id': '3603e6a2-eedf-41fc-8a0a-3aa5e363f5ac', 'ip_version': 4, 'cidr': '95.142.122.192/26', 'allocation_pools': [{'start': '95.142.122.194', 'end': '95.142.122.254'}], 'gateway_ip': '95.142.122.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '95.142.122.194', 'tags': [], 'project_id': 'e579bb09a86e470887c97b3b454c8344'}}
2024-09-17 20:23:12,823 - INFO - Created VN ctest-vn-06908520
2024-09-17 20:23:12,883 - DEBUG - VN ctest-vn-06908520 UUID is 3603e6a2-eedf-41fc-8a0a-3aa5e363f5ac
2024-09-17 20:23:13,207 - DEBUG - Response for create_network : {'network': {'id': '08aba263-a3b5-4e8e-8c46-466375ab9754', 'name': 'ctest-vn-55044342', 'tenant_id': 'e579bb09a86e470887c97b3b454c8344', 'project_id': 'e579bb09a86e470887c97b3b454c8344', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-31488806', 'ctest-vn-55044342'], 'port_security_enabled': True, 'description': ''}}
2024-09-17 20:23:13,407 - DEBUG - Response for create_subnet : {'subnet': {'id': 'aa4351f4-fb92-4df6-a73d-1442c02d14e9', 'name': '', 'tenant_id': 'e579bb09a86e470887c97b3b454c8344', 'network_id': '08aba263-a3b5-4e8e-8c46-466375ab9754', 'ip_version': 4, 'cidr': '5.22.194.192/26', 'allocation_pools': [{'start': '5.22.194.194', 'end': '5.22.194.254'}], 'gateway_ip': '5.22.194.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '5.22.194.194', 'tags': [], 'project_id': 'e579bb09a86e470887c97b3b454c8344'}}
2024-09-17 20:23:13,427 - INFO - Created VN ctest-vn-55044342
2024-09-17 20:23:13,483 - DEBUG - VN ctest-vn-55044342 UUID is 08aba263-a3b5-4e8e-8c46-466375ab9754
2024-09-17 20:23:13,600 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-31488806:ctest-vn-06908520, 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-31488806:ctest-vn-55044342, 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-17 20:23:13,919 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3603e6a2-eedf-41fc-8a0a-3aa5e363f5ac', 'name': 'ctest-vn-06908520', 'tenant_id': 'e579bb09a86e470887c97b3b454c8344', 'project_id': 'e579bb09a86e470887c97b3b454c8344', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['41fd0f9e-f542-4f8d-b739-151fbe6b8b6c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-31488806', 'ctest-vn-06908520'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-31488806', 'ctest-policy-allow-all-73558753']], 'subnet_ipam': [{'subnet_cidr': '95.142.122.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-17 20:23:14,171 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '08aba263-a3b5-4e8e-8c46-466375ab9754', 'name': 'ctest-vn-55044342', 'tenant_id': 'e579bb09a86e470887c97b3b454c8344', 'project_id': 'e579bb09a86e470887c97b3b454c8344', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['aa4351f4-fb92-4df6-a73d-1442c02d14e9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-31488806', 'ctest-vn-55044342'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-31488806', 'ctest-policy-allow-all-73558753']], 'subnet_ipam': [{'subnet_cidr': '5.22.194.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-17 20:23:14,343 - DEBUG - Requesting: http://10.0.0.77:8082/domains
2024-09-17 20:23:14,646 - DEBUG - Requesting: http://10.0.0.77:8082/domains
2024-09-17 20:23:14,676 - DEBUG - Requesting: http://10.0.0.77:8082/domain/150f836a-ed93-43c0-a388-54eaf11a9d84
2024-09-17 20:23:14,691 - DEBUG - Requesting: http://10.0.0.77:8082/project/e579bb09-a86e-4708-87c9-7b3b454c8344
2024-09-17 20:23:14,773 - DEBUG - Requesting: http://10.0.0.77:8082/virtual-network/3603e6a2-eedf-41fc-8a0a-3aa5e363f5ac
2024-09-17 20:23:14,790 - DEBUG - Requesting: http://10.0.0.77:8082/virtual-network/3603e6a2-eedf-41fc-8a0a-3aa5e363f5ac
2024-09-17 20:23:14,804 - DEBUG - Requesting: http://10.0.0.77:8082/routing-instance/1d15ec70-4fcc-4ba5-9982-387799e07a2e
2024-09-17 20:23:14,815 - DEBUG - Requesting: http://10.0.0.77:8082/routing-instance/1d15ec70-4fcc-4ba5-9982-387799e07a2e
2024-09-17 20:23:14,825 - DEBUG - Requesting: http://10.0.0.77:8082/route-target/27528bab-ebfc-4345-ba75-1ff5414c4e6d
2024-09-17 20:23:14,834 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-17 20:23:14,834 - DEBUG - Requesting: http://10.0.0.77:8082/virtual-network/3603e6a2-eedf-41fc-8a0a-3aa5e363f5ac
2024-09-17 20:23:14,847 - DEBUG - Requesting: http://10.0.0.77:8082/routing-instance/1d15ec70-4fcc-4ba5-9982-387799e07a2e
2024-09-17 20:23:14,871 - INFO - Verified VN network id 8 for VN 3603e6a2-eedf-41fc-8a0a-3aa5e363f5ac
2024-09-17 20:23:14,871 - INFO - Verifications in API Server for VN ctest-vn-06908520 passed
2024-09-17 20:23:14,871 - DEBUG - Requesting: http://10.0.0.77:8082/virtual-network/3603e6a2-eedf-41fc-8a0a-3aa5e363f5ac
2024-09-17 20:23:14,888 - DEBUG - Requesting: http://10.0.0.77:8082/routing-instance/1d15ec70-4fcc-4ba5-9982-387799e07a2e
2024-09-17 20:23:14,897 - DEBUG - Requesting: http://10.0.0.77:8082/routing-instance/1d15ec70-4fcc-4ba5-9982-387799e07a2e
2024-09-17 20:23:14,907 - DEBUG - Requesting: http://10.0.0.77:8082/route-target/27528bab-ebfc-4345-ba75-1ff5414c4e6d
2024-09-17 20:23:14,920 - DEBUG - Control-node 10.0.0.77 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-31488806:ctest-vn-06908520', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-31488806', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3892208090444939772', 'uuid-lslong': '9946827211160155564'}, 'enable': 'true', 'created': '2024-09-17T20:23:12', 'last-modified': '2024-09-17T20:23:13', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.035390'}
2024-09-17 20:23:14,928 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-17 20:23:14,928 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-06908520 passed
2024-09-17 20:23:14,928 - DEBUG - ====Verifying policy data for ctest-vn-06908520 in API_Server ======
2024-09-17 20:23:14,929 - DEBUG - Requesting: http://10.0.0.77:8082/domains
2024-09-17 20:23:14,935 - DEBUG - Requesting: http://10.0.0.77:8082/domain/150f836a-ed93-43c0-a388-54eaf11a9d84
2024-09-17 20:23:14,949 - DEBUG - Requesting: http://10.0.0.77:8082/project/e579bb09-a86e-4708-87c9-7b3b454c8344
2024-09-17 20:23:15,029 - DEBUG - Requesting: http://10.0.0.77:8082/virtual-network/3603e6a2-eedf-41fc-8a0a-3aa5e363f5ac
2024-09-17 20:23:15,042 - DEBUG - ==>Verifying data for policy with id: b8e31720-e529-4c9f-965a-876f37927e83, fqn: ['default-domain', 'ctest-TestBasicPolicy-31488806', 'ctest-policy-allow-all-73558753']
2024-09-17 20:23:15,042 - INFO - VN ctest-vn-06908520 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-17 20:23:15,042 - DEBUG - Verifying the vn in opserver
2024-09-17 20:23:15,042 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-31488806:ctest-vn-06908520 virtual network link through opserver 10.0.0.77
2024-09-17 20:23:15,042 - DEBUG - Requesting: http://10.0.0.77:8081/analytics/uves/virtual-networks
2024-09-17 20:23:15,338 - DEBUG - Requesting: http://10.0.0.77:8081/analytics/uves/virtual-networks
2024-09-17 20:23:15,400 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-31488806:ctest-vn-06908520', 'href': 'http://10.0.0.77:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-31488806:ctest-vn-06908520?flat'}
2024-09-17 20:23:15,400 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-31488806:ctest-vn-06908520 is found in opserver
2024-09-17 20:23:15,411 - DEBUG - Do not have enough data to verify VN in agent
2024-09-17 20:23:15,417 - DEBUG - VRF ids for VN ctest-vn-06908520: {}
2024-09-17 20:23:15,417 - DEBUG - Requesting: http://10.0.0.77:8082/domains
2024-09-17 20:23:15,424 - DEBUG - Requesting: http://10.0.0.77:8082/domain/150f836a-ed93-43c0-a388-54eaf11a9d84
2024-09-17 20:23:15,436 - DEBUG - Requesting: http://10.0.0.77:8082/project/e579bb09-a86e-4708-87c9-7b3b454c8344
2024-09-17 20:23:15,518 - DEBUG - Requesting: http://10.0.0.77:8082/virtual-network/08aba263-a3b5-4e8e-8c46-466375ab9754
2024-09-17 20:23:15,534 - DEBUG - Requesting: http://10.0.0.77:8082/virtual-network/08aba263-a3b5-4e8e-8c46-466375ab9754
2024-09-17 20:23:15,547 - DEBUG - Requesting: http://10.0.0.77:8082/routing-instance/458bcba3-c8c4-41e4-bec8-2b98d923cc6e
2024-09-17 20:23:15,556 - DEBUG - Requesting: http://10.0.0.77:8082/routing-instance/458bcba3-c8c4-41e4-bec8-2b98d923cc6e
2024-09-17 20:23:15,567 - DEBUG - Requesting: http://10.0.0.77:8082/route-target/c9091df7-db26-4b2c-a52d-1b854cacd04f
2024-09-17 20:23:15,575 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-17 20:23:15,575 - DEBUG - Requesting: http://10.0.0.77:8082/virtual-network/08aba263-a3b5-4e8e-8c46-466375ab9754
2024-09-17 20:23:15,589 - DEBUG - Requesting: http://10.0.0.77:8082/routing-instance/458bcba3-c8c4-41e4-bec8-2b98d923cc6e
2024-09-17 20:23:15,608 - INFO - Verified VN network id 9 for VN 08aba263-a3b5-4e8e-8c46-466375ab9754
2024-09-17 20:23:15,608 - INFO - Verifications in API Server for VN ctest-vn-55044342 passed
2024-09-17 20:23:15,608 - DEBUG - Requesting: http://10.0.0.77:8082/virtual-network/08aba263-a3b5-4e8e-8c46-466375ab9754
2024-09-17 20:23:15,622 - DEBUG - Requesting: http://10.0.0.77:8082/routing-instance/458bcba3-c8c4-41e4-bec8-2b98d923cc6e
2024-09-17 20:23:15,631 - DEBUG - Requesting: http://10.0.0.77:8082/routing-instance/458bcba3-c8c4-41e4-bec8-2b98d923cc6e
2024-09-17 20:23:15,639 - DEBUG - Requesting: http://10.0.0.77:8082/route-target/c9091df7-db26-4b2c-a52d-1b854cacd04f
2024-09-17 20:23:15,653 - DEBUG - Control-node 10.0.0.77 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-31488806:ctest-vn-55044342', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-31488806', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '624771522152976014', 'uuid-lslong': '10107843806669543252'}, 'enable': 'true', 'created': '2024-09-17T20:23:13', 'last-modified': '2024-09-17T20:23:14', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.513144'}
2024-09-17 20:23:15,660 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-17 20:23:15,660 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-55044342 passed
2024-09-17 20:23:15,660 - DEBUG - ====Verifying policy data for ctest-vn-55044342 in API_Server ======
2024-09-17 20:23:15,660 - DEBUG - Requesting: http://10.0.0.77:8082/domains
2024-09-17 20:23:15,667 - DEBUG - Requesting: http://10.0.0.77:8082/domain/150f836a-ed93-43c0-a388-54eaf11a9d84
2024-09-17 20:23:15,680 - DEBUG - Requesting: http://10.0.0.77:8082/project/e579bb09-a86e-4708-87c9-7b3b454c8344
2024-09-17 20:23:15,768 - DEBUG - Requesting: http://10.0.0.77:8082/virtual-network/08aba263-a3b5-4e8e-8c46-466375ab9754
2024-09-17 20:23:15,784 - DEBUG - ==>Verifying data for policy with id: b8e31720-e529-4c9f-965a-876f37927e83, fqn: ['default-domain', 'ctest-TestBasicPolicy-31488806', 'ctest-policy-allow-all-73558753']
2024-09-17 20:23:15,784 - INFO - VN ctest-vn-55044342 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-17 20:23:15,784 - DEBUG - Verifying the vn in opserver
2024-09-17 20:23:15,785 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-31488806:ctest-vn-55044342 virtual network link through opserver 10.0.0.77
2024-09-17 20:23:15,785 - DEBUG - Requesting: http://10.0.0.77:8081/analytics/uves/virtual-networks
2024-09-17 20:23:15,798 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-31488806:ctest-vn-55044342', 'href': 'http://10.0.0.77:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-31488806:ctest-vn-55044342?flat'}
2024-09-17 20:23:15,798 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-31488806:ctest-vn-55044342 is found in opserver
2024-09-17 20:23:15,810 - DEBUG - Do not have enough data to verify VN in agent
2024-09-17 20:23:15,815 - DEBUG - VRF ids for VN ctest-vn-55044342: {}
2024-09-17 20:23:15,879 - DEBUG - Services list from nova: [