2024-09-09 23:03:40,680 - INFO - Domain Default found not creating
2024-09-09 23:03:40,846 - INFO - Project ctest-TestBasicPolicy-58494005 not found, creating it
2024-09-09 23:03:41,314 - INFO - Created Project:ctest-TestBasicPolicy-58494005, ID : 2bcea5ee-f1bc-4318-bb7d-4f69a939a038
2024-09-09 23:03:42,814 - INFO - ================================================================================
2024-09-09 23:03:42,814 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-09-09 23:03:42,814 - 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-09 23:03:43,067 - DEBUG - Nothing to compare xmpp stats {'10.0.0.42': {'10.20.0.19': '0'}} with
2024-09-09 23:03:43,067 - INFO - Initial checks done. Running the testcase now
2024-09-09 23:03:43,067 - INFO -
2024-09-09 23:03:43,630 - DEBUG - Response for create_network : {'network': {'id': '9bb89aa5-fc9c-4f76-a42a-3ae7052153b2', 'name': 'ctest-vn-77302713', 'tenant_id': '2bcea5eef1bc4318bb7d4f69a939a038', 'project_id': '2bcea5eef1bc4318bb7d4f69a939a038', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-58494005', 'ctest-vn-77302713'], 'port_security_enabled': True, 'description': ''}}
2024-09-09 23:03:43,832 - DEBUG - Response for create_subnet : {'subnet': {'id': '7ed486ca-48b7-48f7-b0e4-75a68d5ed8f6', 'name': '', 'tenant_id': '2bcea5eef1bc4318bb7d4f69a939a038', 'network_id': '9bb89aa5-fc9c-4f76-a42a-3ae7052153b2', 'ip_version': 4, 'cidr': '170.225.102.192/26', 'allocation_pools': [{'start': '170.225.102.194', 'end': '170.225.102.254'}], 'gateway_ip': '170.225.102.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '170.225.102.194', 'tags': [], 'project_id': '2bcea5eef1bc4318bb7d4f69a939a038'}}
2024-09-09 23:03:43,853 - INFO - Created VN ctest-vn-77302713
2024-09-09 23:03:43,904 - DEBUG - VN ctest-vn-77302713 UUID is 9bb89aa5-fc9c-4f76-a42a-3ae7052153b2
2024-09-09 23:03:44,186 - DEBUG - Response for create_network : {'network': {'id': '97dc79e3-e7be-457e-ba1b-59e533e54a8a', 'name': 'ctest-vn-43720946', 'tenant_id': '2bcea5eef1bc4318bb7d4f69a939a038', 'project_id': '2bcea5eef1bc4318bb7d4f69a939a038', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-58494005', 'ctest-vn-43720946'], 'port_security_enabled': True, 'description': ''}}
2024-09-09 23:03:44,360 - DEBUG - Response for create_subnet : {'subnet': {'id': '213d24a4-f591-4cf9-819c-52ebd8070632', 'name': '', 'tenant_id': '2bcea5eef1bc4318bb7d4f69a939a038', 'network_id': '97dc79e3-e7be-457e-ba1b-59e533e54a8a', 'ip_version': 4, 'cidr': '107.24.43.192/26', 'allocation_pools': [{'start': '107.24.43.194', 'end': '107.24.43.254'}], 'gateway_ip': '107.24.43.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '107.24.43.194', 'tags': [], 'project_id': '2bcea5eef1bc4318bb7d4f69a939a038'}}
2024-09-09 23:03:44,380 - INFO - Created VN ctest-vn-43720946
2024-09-09 23:03:44,432 - DEBUG - VN ctest-vn-43720946 UUID is 97dc79e3-e7be-457e-ba1b-59e533e54a8a
2024-09-09 23:03:44,544 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-58494005:ctest-vn-77302713, 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-58494005:ctest-vn-43720946, 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-09 23:03:44,835 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9bb89aa5-fc9c-4f76-a42a-3ae7052153b2', 'name': 'ctest-vn-77302713', 'tenant_id': '2bcea5eef1bc4318bb7d4f69a939a038', 'project_id': '2bcea5eef1bc4318bb7d4f69a939a038', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7ed486ca-48b7-48f7-b0e4-75a68d5ed8f6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-58494005', 'ctest-vn-77302713'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-58494005', 'ctest-policy-allow-all-72331385']], 'subnet_ipam': [{'subnet_cidr': '170.225.102.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-09 23:03:45,117 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '97dc79e3-e7be-457e-ba1b-59e533e54a8a', 'name': 'ctest-vn-43720946', 'tenant_id': '2bcea5eef1bc4318bb7d4f69a939a038', 'project_id': '2bcea5eef1bc4318bb7d4f69a939a038', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['213d24a4-f591-4cf9-819c-52ebd8070632'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-58494005', 'ctest-vn-43720946'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-58494005', 'ctest-policy-allow-all-72331385']], 'subnet_ipam': [{'subnet_cidr': '107.24.43.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-09 23:03:45,265 - DEBUG - Requesting: http://10.0.0.42:8082/domains
2024-09-09 23:03:45,567 - DEBUG - Requesting: http://10.0.0.42:8082/domains
2024-09-09 23:03:45,605 - DEBUG - Requesting: http://10.0.0.42:8082/domain/0f5e3fe1-c741-4bf1-944b-770f685d7956
2024-09-09 23:03:45,620 - DEBUG - Requesting: http://10.0.0.42:8082/project/2bcea5ee-f1bc-4318-bb7d-4f69a939a038
2024-09-09 23:03:45,693 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/9bb89aa5-fc9c-4f76-a42a-3ae7052153b2
2024-09-09 23:03:45,705 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/9bb89aa5-fc9c-4f76-a42a-3ae7052153b2
2024-09-09 23:03:45,716 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/b559d126-40c3-4908-8e3e-df10fccdc2b4
2024-09-09 23:03:45,724 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/b559d126-40c3-4908-8e3e-df10fccdc2b4
2024-09-09 23:03:45,732 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/3d9683ab-c78a-43a3-bf98-509f96220225
2024-09-09 23:03:45,740 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-09 23:03:45,740 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/9bb89aa5-fc9c-4f76-a42a-3ae7052153b2
2024-09-09 23:03:45,750 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/b559d126-40c3-4908-8e3e-df10fccdc2b4
2024-09-09 23:03:45,765 - INFO - Verified VN network id 7 for VN 9bb89aa5-fc9c-4f76-a42a-3ae7052153b2
2024-09-09 23:03:45,765 - INFO - Verifications in API Server for VN ctest-vn-77302713 passed
2024-09-09 23:03:45,765 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/9bb89aa5-fc9c-4f76-a42a-3ae7052153b2
2024-09-09 23:03:45,778 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/b559d126-40c3-4908-8e3e-df10fccdc2b4
2024-09-09 23:03:45,786 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/b559d126-40c3-4908-8e3e-df10fccdc2b4
2024-09-09 23:03:45,793 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/3d9683ab-c78a-43a3-bf98-509f96220225
2024-09-09 23:03:45,810 - DEBUG - Control-node 10.0.0.42 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-58494005:ctest-vn-77302713', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-58494005', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11220888509291974518', 'uuid-lslong': '11829332135139955634'}, 'enable': 'true', 'created': '2024-09-09T23:03:43', 'last-modified': '2024-09-09T23:03:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.997670'}
2024-09-09 23:03:45,819 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-09 23:03:45,819 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-77302713 passed
2024-09-09 23:03:45,820 - DEBUG - ====Verifying policy data for ctest-vn-77302713 in API_Server ======
2024-09-09 23:03:45,820 - DEBUG - Requesting: http://10.0.0.42:8082/domains
2024-09-09 23:03:45,827 - DEBUG - Requesting: http://10.0.0.42:8082/domain/0f5e3fe1-c741-4bf1-944b-770f685d7956
2024-09-09 23:03:45,839 - DEBUG - Requesting: http://10.0.0.42:8082/project/2bcea5ee-f1bc-4318-bb7d-4f69a939a038
2024-09-09 23:03:45,909 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/9bb89aa5-fc9c-4f76-a42a-3ae7052153b2
2024-09-09 23:03:45,917 - DEBUG - ==>Verifying data for policy with id: 2a8bfc20-94c6-41c4-b728-6eca745d3c0a, fqn: ['default-domain', 'ctest-TestBasicPolicy-58494005', 'ctest-policy-allow-all-72331385']
2024-09-09 23:03:45,917 - INFO - VN ctest-vn-77302713 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-09 23:03:45,917 - DEBUG - Verifying the vn in opserver
2024-09-09 23:03:45,917 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-58494005:ctest-vn-77302713 virtual network link through opserver 10.0.0.42
2024-09-09 23:03:45,917 - DEBUG - Requesting: http://10.0.0.42:8081/analytics/uves/virtual-networks
2024-09-09 23:03:46,211 - DEBUG - Requesting: http://10.0.0.42:8081/analytics/uves/virtual-networks
2024-09-09 23:03:46,271 - DEBUG - Response Code: 500
2024-09-09 23:03:49,272 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-58494005:ctest-vn-77302713 virtual network link through opserver 10.0.0.42
2024-09-09 23:03:49,272 - DEBUG - Requesting: http://10.0.0.42:8081/analytics/uves/virtual-networks
2024-09-09 23:03:49,285 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-58494005:ctest-vn-77302713', 'href': 'http://10.0.0.42:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-58494005:ctest-vn-77302713?flat'}
2024-09-09 23:03:49,285 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-58494005:ctest-vn-77302713 is found in opserver
2024-09-09 23:03:49,300 - DEBUG - Do not have enough data to verify VN in agent
2024-09-09 23:03:49,306 - DEBUG - VRF ids for VN ctest-vn-77302713: {}
2024-09-09 23:03:49,307 - DEBUG - Requesting: http://10.0.0.42:8082/domains
2024-09-09 23:03:49,312 - DEBUG - Requesting: http://10.0.0.42:8082/domain/0f5e3fe1-c741-4bf1-944b-770f685d7956
2024-09-09 23:03:49,325 - DEBUG - Requesting: http://10.0.0.42:8082/project/2bcea5ee-f1bc-4318-bb7d-4f69a939a038
2024-09-09 23:03:49,391 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/97dc79e3-e7be-457e-ba1b-59e533e54a8a
2024-09-09 23:03:49,402 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/97dc79e3-e7be-457e-ba1b-59e533e54a8a
2024-09-09 23:03:49,410 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/c5b0ca6f-857d-423f-afd9-362e31ce10c5
2024-09-09 23:03:49,418 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/c5b0ca6f-857d-423f-afd9-362e31ce10c5
2024-09-09 23:03:49,426 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/6e7923aa-db22-457d-a62d-7c9345ad7d99
2024-09-09 23:03:49,433 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-09 23:03:49,434 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/97dc79e3-e7be-457e-ba1b-59e533e54a8a
2024-09-09 23:03:49,442 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/c5b0ca6f-857d-423f-afd9-362e31ce10c5
2024-09-09 23:03:49,453 - INFO - Verified VN network id 8 for VN 97dc79e3-e7be-457e-ba1b-59e533e54a8a
2024-09-09 23:03:49,453 - INFO - Verifications in API Server for VN ctest-vn-43720946 passed
2024-09-09 23:03:49,454 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/97dc79e3-e7be-457e-ba1b-59e533e54a8a
2024-09-09 23:03:49,461 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/c5b0ca6f-857d-423f-afd9-362e31ce10c5
2024-09-09 23:03:49,468 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/c5b0ca6f-857d-423f-afd9-362e31ce10c5
2024-09-09 23:03:49,474 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/6e7923aa-db22-457d-a62d-7c9345ad7d99
2024-09-09 23:03:49,486 - DEBUG - Control-node 10.0.0.42 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-58494005:ctest-vn-43720946', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-58494005', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10942755214356006270', 'uuid-lslong': '13410411156378831498'}, 'enable': 'true', 'created': '2024-09-09T23:03:44', 'last-modified': '2024-09-09T23:03:45', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:04.437014'}
2024-09-09 23:03:49,492 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-09 23:03:49,492 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-43720946 passed
2024-09-09 23:03:49,492 - DEBUG - ====Verifying policy data for ctest-vn-43720946 in API_Server ======
2024-09-09 23:03:49,492 - DEBUG - Requesting: http://10.0.0.42:8082/domains
2024-09-09 23:03:49,498 - DEBUG - Requesting: http://10.0.0.42:8082/domain/0f5e3fe1-c741-4bf1-944b-770f685d7956
2024-09-09 23:03:49,509 - DEBUG - Requesting: http://10.0.0.42:8082/project/2bcea5ee-f1bc-4318-bb7d-4f69a939a038
2024-09-09 23:03:49,576 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/97dc79e3-e7be-457e-ba1b-59e533e54a8a
2024-09-09 23:03:49,584 - DEBUG - ==>Verifying data for policy with id: 2a8bfc20-94c6-41c4-b728-6eca745d3c0a, fqn: ['default-domain', 'ctest-TestBasicPolicy-58494005', 'ctest-policy-allow-all-72331385']
2024-09-09 23:03:49,584 - INFO - VN ctest-vn-43720946 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-09 23:03:49,584 - DEBUG - Verifying the vn in opserver
2024-09-09 23:03:49,584 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-58494005:ctest-vn-43720946 virtual network link through opserver 10.0.0.42
2024-09-09 23:03:49,584 - DEBUG - Requesting: http://10.0.0.42:8081/analytics/uves/virtual-networks
2024-09-09 23:03:49,596 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-58494005:ctest-vn-43720946', 'href': 'http://10.0.0.42:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-58494005:ctest-vn-43720946?flat'}
2024-09-09 23:03:49,597 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-58494005:ctest-vn-43720946 is found in opserver
2024-09-09 23:03:49,608 - DEBUG - Do not have enough data to verify VN in agent
2024-09-09 23:03:49,613 - DEBUG - VRF ids for VN ctest-vn-43720946: {}
2024-09-09 23:03:49,667 - DEBUG - Services list from nova: [