2024-10-28 13:38:36,681 - INFO - Domain Default found not creating
2024-10-28 13:38:36,885 - INFO - Project ctest-TestBasicPolicy-61664826 not found, creating it
2024-10-28 13:38:37,414 - INFO - Created Project:ctest-TestBasicPolicy-61664826, ID : 9782290b-a61a-4079-bfe4-4c56350a617a
2024-10-28 13:38:39,000 - INFO - ================================================================================
2024-10-28 13:38:39,001 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-10-28 13:38:39,001 - 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-28 13:38:39,258 - DEBUG - Nothing to compare xmpp stats {'10.0.0.23': {'10.20.0.6': '0'}} with
2024-10-28 13:38:39,259 - INFO - Initial checks done. Running the testcase now
2024-10-28 13:38:39,259 - INFO -
2024-10-28 13:38:39,836 - DEBUG - Response for create_network : {'network': {'id': '727adeff-d96a-408e-81ee-cd44d7650f93', 'name': 'ctest-vn-29197866', 'tenant_id': '9782290ba61a4079bfe44c56350a617a', 'project_id': '9782290ba61a4079bfe44c56350a617a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61664826', 'ctest-vn-29197866'], 'port_security_enabled': True, 'description': ''}}
2024-10-28 13:38:40,027 - DEBUG - Response for create_subnet : {'subnet': {'id': '92fc7695-d348-475f-a706-b1b78df6d68a', 'name': '', 'tenant_id': '9782290ba61a4079bfe44c56350a617a', 'network_id': '727adeff-d96a-408e-81ee-cd44d7650f93', 'ip_version': 4, 'cidr': '178.65.106.0/26', 'allocation_pools': [{'start': '178.65.106.2', 'end': '178.65.106.62'}], 'gateway_ip': '178.65.106.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '178.65.106.2', 'tags': [], 'project_id': '9782290ba61a4079bfe44c56350a617a'}}
2024-10-28 13:38:40,047 - INFO - Created VN ctest-vn-29197866
2024-10-28 13:38:40,103 - DEBUG - VN ctest-vn-29197866 UUID is 727adeff-d96a-408e-81ee-cd44d7650f93
2024-10-28 13:38:40,445 - DEBUG - Response for create_network : {'network': {'id': '1351e29d-fe09-44a0-a7b2-9b9d628edaa7', 'name': 'ctest-vn-44927313', 'tenant_id': '9782290ba61a4079bfe44c56350a617a', 'project_id': '9782290ba61a4079bfe44c56350a617a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61664826', 'ctest-vn-44927313'], 'port_security_enabled': True, 'description': ''}}
2024-10-28 13:38:40,668 - DEBUG - Response for create_subnet : {'subnet': {'id': '180dd161-7fdc-4536-96f4-dce5b1f716f6', 'name': '', 'tenant_id': '9782290ba61a4079bfe44c56350a617a', 'network_id': '1351e29d-fe09-44a0-a7b2-9b9d628edaa7', 'ip_version': 4, 'cidr': '119.90.124.0/26', 'allocation_pools': [{'start': '119.90.124.2', 'end': '119.90.124.62'}], 'gateway_ip': '119.90.124.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '119.90.124.2', 'tags': [], 'project_id': '9782290ba61a4079bfe44c56350a617a'}}
2024-10-28 13:38:40,689 - INFO - Created VN ctest-vn-44927313
2024-10-28 13:38:40,747 - DEBUG - VN ctest-vn-44927313 UUID is 1351e29d-fe09-44a0-a7b2-9b9d628edaa7
2024-10-28 13:38:40,880 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-61664826:ctest-vn-29197866, 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-61664826:ctest-vn-44927313, 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-28 13:38:41,198 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '727adeff-d96a-408e-81ee-cd44d7650f93', 'name': 'ctest-vn-29197866', 'tenant_id': '9782290ba61a4079bfe44c56350a617a', 'project_id': '9782290ba61a4079bfe44c56350a617a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['92fc7695-d348-475f-a706-b1b78df6d68a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61664826', 'ctest-vn-29197866'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-61664826', 'ctest-policy-allow-all-35818382']], 'subnet_ipam': [{'subnet_cidr': '178.65.106.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-10-28 13:38:41,458 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1351e29d-fe09-44a0-a7b2-9b9d628edaa7', 'name': 'ctest-vn-44927313', 'tenant_id': '9782290ba61a4079bfe44c56350a617a', 'project_id': '9782290ba61a4079bfe44c56350a617a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['180dd161-7fdc-4536-96f4-dce5b1f716f6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61664826', 'ctest-vn-44927313'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-61664826', 'ctest-policy-allow-all-35818382']], 'subnet_ipam': [{'subnet_cidr': '119.90.124.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-10-28 13:38:41,607 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2024-10-28 13:38:41,913 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2024-10-28 13:38:41,952 - DEBUG - Requesting: http://10.0.0.23:8082/domain/8b2405a9-bc14-421d-9e96-789edeb3cc34
2024-10-28 13:38:41,972 - DEBUG - Requesting: http://10.0.0.23:8082/project/9782290b-a61a-4079-bfe4-4c56350a617a
2024-10-28 13:38:42,057 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/727adeff-d96a-408e-81ee-cd44d7650f93
2024-10-28 13:38:42,073 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/727adeff-d96a-408e-81ee-cd44d7650f93
2024-10-28 13:38:42,087 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/5a40a6a9-3d93-4f4a-9961-bd3551abc359
2024-10-28 13:38:42,097 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/5a40a6a9-3d93-4f4a-9961-bd3551abc359
2024-10-28 13:38:42,107 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/e68fff74-8c5e-45c6-8283-ea6400d5f065
2024-10-28 13:38:42,115 - DEBUG - Route Targets: ['target:64512:8000005']
2024-10-28 13:38:42,115 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/727adeff-d96a-408e-81ee-cd44d7650f93
2024-10-28 13:38:42,129 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/5a40a6a9-3d93-4f4a-9961-bd3551abc359
2024-10-28 13:38:42,150 - INFO - Verified VN network id 9 for VN 727adeff-d96a-408e-81ee-cd44d7650f93
2024-10-28 13:38:42,151 - INFO - Verifications in API Server for VN ctest-vn-29197866 passed
2024-10-28 13:38:42,151 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/727adeff-d96a-408e-81ee-cd44d7650f93
2024-10-28 13:38:42,166 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/5a40a6a9-3d93-4f4a-9961-bd3551abc359
2024-10-28 13:38:42,176 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/5a40a6a9-3d93-4f4a-9961-bd3551abc359
2024-10-28 13:38:42,185 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/e68fff74-8c5e-45c6-8283-ea6400d5f065
2024-10-28 13:38:42,199 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-61664826:ctest-vn-29197866', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-61664826', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8249150857928130702', 'uuid-lslong': '9362646370905034643'}, 'enable': 'true', 'created': '2024-10-28T13:38:39', 'last-modified': '2024-10-28T13:38:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.026697'}
2024-10-28 13:38:42,206 - DEBUG - Route Targets: ['target:64512:8000005']
2024-10-28 13:38:42,206 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-29197866 passed
2024-10-28 13:38:42,207 - DEBUG - ====Verifying policy data for ctest-vn-29197866 in API_Server ======
2024-10-28 13:38:42,207 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2024-10-28 13:38:42,213 - DEBUG - Requesting: http://10.0.0.23:8082/domain/8b2405a9-bc14-421d-9e96-789edeb3cc34
2024-10-28 13:38:42,232 - DEBUG - Requesting: http://10.0.0.23:8082/project/9782290b-a61a-4079-bfe4-4c56350a617a
2024-10-28 13:38:42,330 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/727adeff-d96a-408e-81ee-cd44d7650f93
2024-10-28 13:38:42,345 - DEBUG - ==>Verifying data for policy with id: 13956d19-755e-44a2-b631-ffc39362ac64, fqn: ['default-domain', 'ctest-TestBasicPolicy-61664826', 'ctest-policy-allow-all-35818382']
2024-10-28 13:38:42,345 - INFO - VN ctest-vn-29197866 Policy verification: verify_vn_policy_in_api_server, status: True
2024-10-28 13:38:42,345 - DEBUG - Verifying the vn in opserver
2024-10-28 13:38:42,345 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-61664826:ctest-vn-29197866 virtual network link through opserver 10.0.0.23
2024-10-28 13:38:42,345 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks
2024-10-28 13:38:42,646 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks
2024-10-28 13:38:42,716 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-61664826:ctest-vn-29197866', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-61664826:ctest-vn-29197866?flat'}
2024-10-28 13:38:42,716 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-61664826:ctest-vn-29197866 is found in opserver
2024-10-28 13:38:42,728 - DEBUG - Do not have enough data to verify VN in agent
2024-10-28 13:38:42,734 - DEBUG - VRF ids for VN ctest-vn-29197866: {}
2024-10-28 13:38:42,734 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2024-10-28 13:38:42,741 - DEBUG - Requesting: http://10.0.0.23:8082/domain/8b2405a9-bc14-421d-9e96-789edeb3cc34
2024-10-28 13:38:42,757 - DEBUG - Requesting: http://10.0.0.23:8082/project/9782290b-a61a-4079-bfe4-4c56350a617a
2024-10-28 13:38:42,848 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/1351e29d-fe09-44a0-a7b2-9b9d628edaa7
2024-10-28 13:38:42,866 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/1351e29d-fe09-44a0-a7b2-9b9d628edaa7
2024-10-28 13:38:42,882 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/fa5af9df-0137-44a1-a2bc-ef9a3b1eb7e4
2024-10-28 13:38:42,894 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/fa5af9df-0137-44a1-a2bc-ef9a3b1eb7e4
2024-10-28 13:38:42,905 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/bf522398-714f-4891-acd1-fad21b21e4bc
2024-10-28 13:38:42,915 - DEBUG - Route Targets: ['target:64512:8000006']
2024-10-28 13:38:42,915 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/1351e29d-fe09-44a0-a7b2-9b9d628edaa7
2024-10-28 13:38:42,935 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/fa5af9df-0137-44a1-a2bc-ef9a3b1eb7e4
2024-10-28 13:38:42,959 - INFO - Verified VN network id 10 for VN 1351e29d-fe09-44a0-a7b2-9b9d628edaa7
2024-10-28 13:38:42,959 - INFO - Verifications in API Server for VN ctest-vn-44927313 passed
2024-10-28 13:38:42,959 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/1351e29d-fe09-44a0-a7b2-9b9d628edaa7
2024-10-28 13:38:42,975 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/fa5af9df-0137-44a1-a2bc-ef9a3b1eb7e4
2024-10-28 13:38:42,985 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/fa5af9df-0137-44a1-a2bc-ef9a3b1eb7e4
2024-10-28 13:38:42,996 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/bf522398-714f-4891-acd1-fad21b21e4bc
2024-10-28 13:38:43,012 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-61664826:ctest-vn-44927313', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-61664826', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1392142928033957024', 'uuid-lslong': '12083891850454162087'}, 'enable': 'true', 'created': '2024-10-28T13:38:40', 'last-modified': '2024-10-28T13:38:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.579125'}
2024-10-28 13:38:43,019 - DEBUG - Route Targets: ['target:64512:8000006']
2024-10-28 13:38:43,019 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-44927313 passed
2024-10-28 13:38:43,019 - DEBUG - ====Verifying policy data for ctest-vn-44927313 in API_Server ======
2024-10-28 13:38:43,019 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2024-10-28 13:38:43,026 - DEBUG - Requesting: http://10.0.0.23:8082/domain/8b2405a9-bc14-421d-9e96-789edeb3cc34
2024-10-28 13:38:43,041 - DEBUG - Requesting: http://10.0.0.23:8082/project/9782290b-a61a-4079-bfe4-4c56350a617a
2024-10-28 13:38:43,137 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/1351e29d-fe09-44a0-a7b2-9b9d628edaa7
2024-10-28 13:38:43,153 - DEBUG - ==>Verifying data for policy with id: 13956d19-755e-44a2-b631-ffc39362ac64, fqn: ['default-domain', 'ctest-TestBasicPolicy-61664826', 'ctest-policy-allow-all-35818382']
2024-10-28 13:38:43,153 - INFO - VN ctest-vn-44927313 Policy verification: verify_vn_policy_in_api_server, status: True
2024-10-28 13:38:43,154 - DEBUG - Verifying the vn in opserver
2024-10-28 13:38:43,154 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-61664826:ctest-vn-44927313 virtual network link through opserver 10.0.0.23
2024-10-28 13:38:43,154 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks
2024-10-28 13:38:43,167 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-61664826:ctest-vn-44927313', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-61664826:ctest-vn-44927313?flat'}
2024-10-28 13:38:43,167 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-61664826:ctest-vn-44927313 is found in opserver
2024-10-28 13:38:43,180 - DEBUG - Do not have enough data to verify VN in agent
2024-10-28 13:38:43,186 - DEBUG - VRF ids for VN ctest-vn-44927313: {}
2024-10-28 13:38:43,253 - DEBUG - Services list from nova: [