2024-11-06 11:46:26,798 - INFO - Domain Default found not creating
2024-11-06 11:46:26,991 - INFO - Project ctest-TestBasicPolicy-19999665 not found, creating it
2024-11-06 11:46:27,478 - INFO - Created Project:ctest-TestBasicPolicy-19999665, ID : a6ae0f1d-433e-4713-8a8a-76cb8c9adbd2
2024-11-06 11:46:29,224 - INFO - ================================================================================
2024-11-06 11:46:29,225 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-11-06 11:46:29,225 - 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-11-06 11:46:29,484 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.12': '0'}} with
2024-11-06 11:46:29,484 - INFO - Initial checks done. Running the testcase now
2024-11-06 11:46:29,484 - INFO -
2024-11-06 11:46:30,146 - DEBUG - Response for create_network : {'network': {'id': 'fc1b7aab-6a84-4ce3-aa30-a1164367b05b', 'name': 'ctest-vn-51734868', 'tenant_id': 'a6ae0f1d433e47138a8a76cb8c9adbd2', 'project_id': 'a6ae0f1d433e47138a8a76cb8c9adbd2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-19999665', 'ctest-vn-51734868'], 'port_security_enabled': True, 'description': ''}}
2024-11-06 11:46:30,366 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ad908691-d769-46b3-9927-e8f519baf4a2', 'name': '', 'tenant_id': 'a6ae0f1d433e47138a8a76cb8c9adbd2', 'network_id': 'fc1b7aab-6a84-4ce3-aa30-a1164367b05b', 'ip_version': 4, 'cidr': '150.145.157.192/26', 'allocation_pools': [{'start': '150.145.157.194', 'end': '150.145.157.254'}], 'gateway_ip': '150.145.157.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '150.145.157.194', 'tags': [], 'project_id': 'a6ae0f1d433e47138a8a76cb8c9adbd2'}}
2024-11-06 11:46:30,398 - INFO - Created VN ctest-vn-51734868
2024-11-06 11:46:30,453 - DEBUG - VN ctest-vn-51734868 UUID is fc1b7aab-6a84-4ce3-aa30-a1164367b05b
2024-11-06 11:46:30,808 - DEBUG - Response for create_network : {'network': {'id': 'fc3cad17-16c5-49bc-a470-a8562da41f5e', 'name': 'ctest-vn-33602686', 'tenant_id': 'a6ae0f1d433e47138a8a76cb8c9adbd2', 'project_id': 'a6ae0f1d433e47138a8a76cb8c9adbd2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-19999665', 'ctest-vn-33602686'], 'port_security_enabled': True, 'description': ''}}
2024-11-06 11:46:31,048 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd3da5df7-392e-4477-ad4c-5a036bccddab', 'name': '', 'tenant_id': 'a6ae0f1d433e47138a8a76cb8c9adbd2', 'network_id': 'fc3cad17-16c5-49bc-a470-a8562da41f5e', 'ip_version': 4, 'cidr': '93.167.208.128/26', 'allocation_pools': [{'start': '93.167.208.130', 'end': '93.167.208.190'}], 'gateway_ip': '93.167.208.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '93.167.208.130', 'tags': [], 'project_id': 'a6ae0f1d433e47138a8a76cb8c9adbd2'}}
2024-11-06 11:46:31,072 - INFO - Created VN ctest-vn-33602686
2024-11-06 11:46:31,125 - DEBUG - VN ctest-vn-33602686 UUID is fc3cad17-16c5-49bc-a470-a8562da41f5e
2024-11-06 11:46:31,260 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-19999665:ctest-vn-51734868, 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-19999665:ctest-vn-33602686, 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-11-06 11:46:31,594 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fc1b7aab-6a84-4ce3-aa30-a1164367b05b', 'name': 'ctest-vn-51734868', 'tenant_id': 'a6ae0f1d433e47138a8a76cb8c9adbd2', 'project_id': 'a6ae0f1d433e47138a8a76cb8c9adbd2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ad908691-d769-46b3-9927-e8f519baf4a2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-19999665', 'ctest-vn-51734868'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-19999665', 'ctest-policy-allow-all-25695160']], 'subnet_ipam': [{'subnet_cidr': '150.145.157.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-06 11:46:31,857 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fc3cad17-16c5-49bc-a470-a8562da41f5e', 'name': 'ctest-vn-33602686', 'tenant_id': 'a6ae0f1d433e47138a8a76cb8c9adbd2', 'project_id': 'a6ae0f1d433e47138a8a76cb8c9adbd2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d3da5df7-392e-4477-ad4c-5a036bccddab'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-19999665', 'ctest-vn-33602686'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-19999665', 'ctest-policy-allow-all-25695160']], 'subnet_ipam': [{'subnet_cidr': '93.167.208.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-06 11:46:32,017 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2024-11-06 11:46:32,361 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2024-11-06 11:46:32,401 - DEBUG - Requesting: http://10.0.0.22:8082/domain/d7ca2727-631a-4765-b009-db03ffd4590d
2024-11-06 11:46:32,422 - DEBUG - Requesting: http://10.0.0.22:8082/project/a6ae0f1d-433e-4713-8a8a-76cb8c9adbd2
2024-11-06 11:46:32,505 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/fc1b7aab-6a84-4ce3-aa30-a1164367b05b
2024-11-06 11:46:32,520 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/fc1b7aab-6a84-4ce3-aa30-a1164367b05b
2024-11-06 11:46:32,534 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f28f385d-3d89-4ece-b5b9-a3f1ce9cc3e0
2024-11-06 11:46:32,545 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f28f385d-3d89-4ece-b5b9-a3f1ce9cc3e0
2024-11-06 11:46:32,555 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/5e7a78b5-00b8-4a87-b3f9-c1ffc2f4f821
2024-11-06 11:46:32,565 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-06 11:46:32,565 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/fc1b7aab-6a84-4ce3-aa30-a1164367b05b
2024-11-06 11:46:32,578 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f28f385d-3d89-4ece-b5b9-a3f1ce9cc3e0
2024-11-06 11:46:32,597 - INFO - Verified VN network id 8 for VN fc1b7aab-6a84-4ce3-aa30-a1164367b05b
2024-11-06 11:46:32,598 - INFO - Verifications in API Server for VN ctest-vn-51734868 passed
2024-11-06 11:46:32,598 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/fc1b7aab-6a84-4ce3-aa30-a1164367b05b
2024-11-06 11:46:32,611 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f28f385d-3d89-4ece-b5b9-a3f1ce9cc3e0
2024-11-06 11:46:32,621 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f28f385d-3d89-4ece-b5b9-a3f1ce9cc3e0
2024-11-06 11:46:32,629 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/5e7a78b5-00b8-4a87-b3f9-c1ffc2f4f821
2024-11-06 11:46:32,643 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-19999665:ctest-vn-51734868', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-19999665', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18166248398574079203', 'uuid-lslong': '12263478902322081883'}, 'enable': 'true', 'created': '2024-11-06T11:46:30', 'last-modified': '2024-11-06T11:46:31', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.081821'}
2024-11-06 11:46:32,651 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-06 11:46:32,651 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-51734868 passed
2024-11-06 11:46:32,651 - DEBUG - ====Verifying policy data for ctest-vn-51734868 in API_Server ======
2024-11-06 11:46:32,651 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2024-11-06 11:46:32,660 - DEBUG - Requesting: http://10.0.0.22:8082/domain/d7ca2727-631a-4765-b009-db03ffd4590d
2024-11-06 11:46:32,674 - DEBUG - Requesting: http://10.0.0.22:8082/project/a6ae0f1d-433e-4713-8a8a-76cb8c9adbd2
2024-11-06 11:46:32,748 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/fc1b7aab-6a84-4ce3-aa30-a1164367b05b
2024-11-06 11:46:32,757 - DEBUG - ==>Verifying data for policy with id: 80830134-d04a-405d-9d36-f19f7bd1d100, fqn: ['default-domain', 'ctest-TestBasicPolicy-19999665', 'ctest-policy-allow-all-25695160']
2024-11-06 11:46:32,758 - INFO - VN ctest-vn-51734868 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-06 11:46:32,758 - DEBUG - Verifying the vn in opserver
2024-11-06 11:46:32,758 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-19999665:ctest-vn-51734868 virtual network link through opserver 10.0.0.22
2024-11-06 11:46:32,758 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2024-11-06 11:46:33,107 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2024-11-06 11:46:33,181 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-19999665:ctest-vn-51734868', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-19999665:ctest-vn-51734868?flat'}
2024-11-06 11:46:33,181 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-19999665:ctest-vn-51734868 is found in opserver
2024-11-06 11:46:33,194 - DEBUG - Do not have enough data to verify VN in agent
2024-11-06 11:46:33,202 - DEBUG - VRF ids for VN ctest-vn-51734868: {}
2024-11-06 11:46:33,202 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2024-11-06 11:46:33,210 - DEBUG - Requesting: http://10.0.0.22:8082/domain/d7ca2727-631a-4765-b009-db03ffd4590d
2024-11-06 11:46:33,228 - DEBUG - Requesting: http://10.0.0.22:8082/project/a6ae0f1d-433e-4713-8a8a-76cb8c9adbd2
2024-11-06 11:46:33,310 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/fc3cad17-16c5-49bc-a470-a8562da41f5e
2024-11-06 11:46:33,325 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/fc3cad17-16c5-49bc-a470-a8562da41f5e
2024-11-06 11:46:33,339 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/676373f8-c1d7-4dfd-9d35-93fb4887a36f
2024-11-06 11:46:33,349 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/676373f8-c1d7-4dfd-9d35-93fb4887a36f
2024-11-06 11:46:33,359 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/76f0b5c0-929c-4542-a434-4a807f0cf2fa
2024-11-06 11:46:33,369 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-06 11:46:33,369 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/fc3cad17-16c5-49bc-a470-a8562da41f5e
2024-11-06 11:46:33,382 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/676373f8-c1d7-4dfd-9d35-93fb4887a36f
2024-11-06 11:46:33,401 - INFO - Verified VN network id 9 for VN fc3cad17-16c5-49bc-a470-a8562da41f5e
2024-11-06 11:46:33,402 - INFO - Verifications in API Server for VN ctest-vn-33602686 passed
2024-11-06 11:46:33,402 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/fc3cad17-16c5-49bc-a470-a8562da41f5e
2024-11-06 11:46:33,415 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/676373f8-c1d7-4dfd-9d35-93fb4887a36f
2024-11-06 11:46:33,424 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/676373f8-c1d7-4dfd-9d35-93fb4887a36f
2024-11-06 11:46:33,433 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/76f0b5c0-929c-4542-a434-4a807f0cf2fa
2024-11-06 11:46:33,449 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-19999665:ctest-vn-33602686', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-19999665', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18175592510838360508', 'uuid-lslong': '11849155707698159454'}, 'enable': 'true', 'created': '2024-11-06T11:46:30', 'last-modified': '2024-11-06T11:46:31', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.625168'}
2024-11-06 11:46:33,458 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-06 11:46:33,459 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-33602686 passed
2024-11-06 11:46:33,459 - DEBUG - ====Verifying policy data for ctest-vn-33602686 in API_Server ======
2024-11-06 11:46:33,459 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2024-11-06 11:46:33,467 - DEBUG - Requesting: http://10.0.0.22:8082/domain/d7ca2727-631a-4765-b009-db03ffd4590d
2024-11-06 11:46:33,484 - DEBUG - Requesting: http://10.0.0.22:8082/project/a6ae0f1d-433e-4713-8a8a-76cb8c9adbd2
2024-11-06 11:46:33,566 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/fc3cad17-16c5-49bc-a470-a8562da41f5e
2024-11-06 11:46:33,578 - DEBUG - ==>Verifying data for policy with id: 80830134-d04a-405d-9d36-f19f7bd1d100, fqn: ['default-domain', 'ctest-TestBasicPolicy-19999665', 'ctest-policy-allow-all-25695160']
2024-11-06 11:46:33,578 - INFO - VN ctest-vn-33602686 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-06 11:46:33,579 - DEBUG - Verifying the vn in opserver
2024-11-06 11:46:33,579 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-19999665:ctest-vn-33602686 virtual network link through opserver 10.0.0.22
2024-11-06 11:46:33,579 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2024-11-06 11:46:33,596 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-19999665:ctest-vn-33602686', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-19999665:ctest-vn-33602686?flat'}
2024-11-06 11:46:33,596 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-19999665:ctest-vn-33602686 is found in opserver
2024-11-06 11:46:33,610 - DEBUG - Do not have enough data to verify VN in agent
2024-11-06 11:46:33,617 - DEBUG - VRF ids for VN ctest-vn-33602686: {}
2024-11-06 11:46:33,707 - DEBUG - Services list from nova: [