2024-08-29 17:09:11,513 - INFO - Domain Default found not creating
2024-08-29 17:09:11,709 - INFO - Project ctest-TestBasicPolicy-36228391 not found, creating it
2024-08-29 17:09:12,250 - INFO - Created Project:ctest-TestBasicPolicy-36228391, ID : f3ff59f0-8d3f-4a09-8482-91d56adbd94d
2024-08-29 17:09:13,922 - INFO - ================================================================================
2024-08-29 17:09:13,922 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-08-29 17:09:13,922 - 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-08-29 17:09:14,205 - DEBUG - Nothing to compare xmpp stats {'10.0.0.29': {'10.20.0.39': '0'}} with
2024-08-29 17:09:14,205 - INFO - Initial checks done. Running the testcase now
2024-08-29 17:09:14,205 - INFO -
2024-08-29 17:09:14,834 - DEBUG - Response for create_network : {'network': {'id': '06f01242-219b-4daf-9452-7f2ef40af611', 'name': 'ctest-vn-99712578', 'tenant_id': 'f3ff59f08d3f4a09848291d56adbd94d', 'project_id': 'f3ff59f08d3f4a09848291d56adbd94d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-36228391', 'ctest-vn-99712578'], 'port_security_enabled': True, 'description': ''}}
2024-08-29 17:09:15,050 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c64ad6f2-6657-43f8-a834-4e82432a7226', 'name': '', 'tenant_id': 'f3ff59f08d3f4a09848291d56adbd94d', 'network_id': '06f01242-219b-4daf-9452-7f2ef40af611', 'ip_version': 4, 'cidr': '54.125.26.0/26', 'allocation_pools': [{'start': '54.125.26.2', 'end': '54.125.26.62'}], 'gateway_ip': '54.125.26.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '54.125.26.2', 'tags': [], 'project_id': 'f3ff59f08d3f4a09848291d56adbd94d'}}
2024-08-29 17:09:15,072 - INFO - Created VN ctest-vn-99712578
2024-08-29 17:09:15,127 - DEBUG - VN ctest-vn-99712578 UUID is 06f01242-219b-4daf-9452-7f2ef40af611
2024-08-29 17:09:15,459 - DEBUG - Response for create_network : {'network': {'id': '503d6f8d-f8b9-4c6b-91cf-7ab317791f14', 'name': 'ctest-vn-52817147', 'tenant_id': 'f3ff59f08d3f4a09848291d56adbd94d', 'project_id': 'f3ff59f08d3f4a09848291d56adbd94d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-36228391', 'ctest-vn-52817147'], 'port_security_enabled': True, 'description': ''}}
2024-08-29 17:09:15,698 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fb733bc1-7b8a-477d-9609-d9e28df4c279', 'name': '', 'tenant_id': 'f3ff59f08d3f4a09848291d56adbd94d', 'network_id': '503d6f8d-f8b9-4c6b-91cf-7ab317791f14', 'ip_version': 4, 'cidr': '164.96.81.0/26', 'allocation_pools': [{'start': '164.96.81.2', 'end': '164.96.81.62'}], 'gateway_ip': '164.96.81.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '164.96.81.2', 'tags': [], 'project_id': 'f3ff59f08d3f4a09848291d56adbd94d'}}
2024-08-29 17:09:15,719 - INFO - Created VN ctest-vn-52817147
2024-08-29 17:09:15,771 - DEBUG - VN ctest-vn-52817147 UUID is 503d6f8d-f8b9-4c6b-91cf-7ab317791f14
2024-08-29 17:09:15,882 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-36228391:ctest-vn-99712578, 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-36228391:ctest-vn-52817147, 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-08-29 17:09:16,229 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '06f01242-219b-4daf-9452-7f2ef40af611', 'name': 'ctest-vn-99712578', 'tenant_id': 'f3ff59f08d3f4a09848291d56adbd94d', 'project_id': 'f3ff59f08d3f4a09848291d56adbd94d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c64ad6f2-6657-43f8-a834-4e82432a7226'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-36228391', 'ctest-vn-99712578'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-36228391', 'ctest-policy-allow-all-55559596']], 'subnet_ipam': [{'subnet_cidr': '54.125.26.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-08-29 17:09:16,484 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '503d6f8d-f8b9-4c6b-91cf-7ab317791f14', 'name': 'ctest-vn-52817147', 'tenant_id': 'f3ff59f08d3f4a09848291d56adbd94d', 'project_id': 'f3ff59f08d3f4a09848291d56adbd94d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['fb733bc1-7b8a-477d-9609-d9e28df4c279'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-36228391', 'ctest-vn-52817147'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-36228391', 'ctest-policy-allow-all-55559596']], 'subnet_ipam': [{'subnet_cidr': '164.96.81.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-08-29 17:09:16,656 - DEBUG - Requesting: http://10.0.0.29:8082/domains
2024-08-29 17:09:16,982 - DEBUG - Requesting: http://10.0.0.29:8082/domains
2024-08-29 17:09:17,019 - DEBUG - Requesting: http://10.0.0.29:8082/domain/90e08836-a64c-4e78-8958-ae5c95a41caf
2024-08-29 17:09:17,033 - DEBUG - Requesting: http://10.0.0.29:8082/project/f3ff59f0-8d3f-4a09-8482-91d56adbd94d
2024-08-29 17:09:17,122 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/06f01242-219b-4daf-9452-7f2ef40af611
2024-08-29 17:09:17,132 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/06f01242-219b-4daf-9452-7f2ef40af611
2024-08-29 17:09:17,147 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/cdb0958b-9567-4003-ac93-cca7a20f4f9d
2024-08-29 17:09:17,156 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/cdb0958b-9567-4003-ac93-cca7a20f4f9d
2024-08-29 17:09:17,163 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/c31e7444-c168-450e-9f65-6d8a8bbbdba4
2024-08-29 17:09:17,171 - DEBUG - Route Targets: ['target:64512:8000005']
2024-08-29 17:09:17,171 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/06f01242-219b-4daf-9452-7f2ef40af611
2024-08-29 17:09:17,180 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/cdb0958b-9567-4003-ac93-cca7a20f4f9d
2024-08-29 17:09:17,201 - INFO - Verified VN network id 7 for VN 06f01242-219b-4daf-9452-7f2ef40af611
2024-08-29 17:09:17,201 - INFO - Verifications in API Server for VN ctest-vn-99712578 passed
2024-08-29 17:09:17,201 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/06f01242-219b-4daf-9452-7f2ef40af611
2024-08-29 17:09:17,211 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/cdb0958b-9567-4003-ac93-cca7a20f4f9d
2024-08-29 17:09:17,219 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/cdb0958b-9567-4003-ac93-cca7a20f4f9d
2024-08-29 17:09:17,227 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/c31e7444-c168-450e-9f65-6d8a8bbbdba4
2024-08-29 17:09:17,240 - DEBUG - Control-node 10.0.0.29 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-36228391:ctest-vn-99712578', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-36228391', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '499919633879092655', 'uuid-lslong': '10687744705343190545'}, 'enable': 'true', 'created': '2024-08-29T17:09:14', 'last-modified': '2024-08-29T17:09:16', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.052383'}
2024-08-29 17:09:17,246 - DEBUG - Route Targets: ['target:64512:8000005']
2024-08-29 17:09:17,247 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-99712578 passed
2024-08-29 17:09:17,247 - DEBUG - ====Verifying policy data for ctest-vn-99712578 in API_Server ======
2024-08-29 17:09:17,247 - DEBUG - Requesting: http://10.0.0.29:8082/domains
2024-08-29 17:09:17,254 - DEBUG - Requesting: http://10.0.0.29:8082/domain/90e08836-a64c-4e78-8958-ae5c95a41caf
2024-08-29 17:09:17,266 - DEBUG - Requesting: http://10.0.0.29:8082/project/f3ff59f0-8d3f-4a09-8482-91d56adbd94d
2024-08-29 17:09:17,345 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/06f01242-219b-4daf-9452-7f2ef40af611
2024-08-29 17:09:17,354 - DEBUG - ==>Verifying data for policy with id: b9f321d3-a655-47ad-8b34-e97bd4a2844a, fqn: ['default-domain', 'ctest-TestBasicPolicy-36228391', 'ctest-policy-allow-all-55559596']
2024-08-29 17:09:17,354 - INFO - VN ctest-vn-99712578 Policy verification: verify_vn_policy_in_api_server, status: True
2024-08-29 17:09:17,354 - DEBUG - Verifying the vn in opserver
2024-08-29 17:09:17,354 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-36228391:ctest-vn-99712578 virtual network link through opserver 10.0.0.29
2024-08-29 17:09:17,355 - DEBUG - Requesting: http://10.0.0.29:8081/analytics/uves/virtual-networks
2024-08-29 17:09:17,755 - DEBUG - Requesting: http://10.0.0.29:8081/analytics/uves/virtual-networks
2024-08-29 17:09:17,825 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-36228391:ctest-vn-99712578', 'href': 'http://10.0.0.29:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-36228391:ctest-vn-99712578?flat'}
2024-08-29 17:09:17,826 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-36228391:ctest-vn-99712578 is found in opserver
2024-08-29 17:09:17,842 - DEBUG - Do not have enough data to verify VN in agent
2024-08-29 17:09:17,850 - DEBUG - VRF ids for VN ctest-vn-99712578: {}
2024-08-29 17:09:17,850 - DEBUG - Requesting: http://10.0.0.29:8082/domains
2024-08-29 17:09:17,857 - DEBUG - Requesting: http://10.0.0.29:8082/domain/90e08836-a64c-4e78-8958-ae5c95a41caf
2024-08-29 17:09:17,872 - DEBUG - Requesting: http://10.0.0.29:8082/project/f3ff59f0-8d3f-4a09-8482-91d56adbd94d
2024-08-29 17:09:17,956 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/503d6f8d-f8b9-4c6b-91cf-7ab317791f14
2024-08-29 17:09:17,967 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/503d6f8d-f8b9-4c6b-91cf-7ab317791f14
2024-08-29 17:09:17,975 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/62000dc1-5361-46ab-8358-db1860d40594
2024-08-29 17:09:17,982 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/62000dc1-5361-46ab-8358-db1860d40594
2024-08-29 17:09:17,989 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/deb60bf4-8d9e-4788-8626-7849c92feed0
2024-08-29 17:09:17,996 - DEBUG - Route Targets: ['target:64512:8000006']
2024-08-29 17:09:17,996 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/503d6f8d-f8b9-4c6b-91cf-7ab317791f14
2024-08-29 17:09:18,003 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/62000dc1-5361-46ab-8358-db1860d40594
2024-08-29 17:09:18,016 - INFO - Verified VN network id 8 for VN 503d6f8d-f8b9-4c6b-91cf-7ab317791f14
2024-08-29 17:09:18,016 - INFO - Verifications in API Server for VN ctest-vn-52817147 passed
2024-08-29 17:09:18,016 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/503d6f8d-f8b9-4c6b-91cf-7ab317791f14
2024-08-29 17:09:18,025 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/62000dc1-5361-46ab-8358-db1860d40594
2024-08-29 17:09:18,032 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/62000dc1-5361-46ab-8358-db1860d40594
2024-08-29 17:09:18,039 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/deb60bf4-8d9e-4788-8626-7849c92feed0
2024-08-29 17:09:18,052 - DEBUG - Control-node 10.0.0.29 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-36228391:ctest-vn-52817147', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-36228391', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5781900152167550059', 'uuid-lslong': '10506751365290204948'}, 'enable': 'true', 'created': '2024-08-29T17:09:15', 'last-modified': '2024-08-29T17:09:16', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.594839'}
2024-08-29 17:09:18,058 - DEBUG - Route Targets: ['target:64512:8000006']
2024-08-29 17:09:18,058 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-52817147 passed
2024-08-29 17:09:18,058 - DEBUG - ====Verifying policy data for ctest-vn-52817147 in API_Server ======
2024-08-29 17:09:18,058 - DEBUG - Requesting: http://10.0.0.29:8082/domains
2024-08-29 17:09:18,065 - DEBUG - Requesting: http://10.0.0.29:8082/domain/90e08836-a64c-4e78-8958-ae5c95a41caf
2024-08-29 17:09:18,078 - DEBUG - Requesting: http://10.0.0.29:8082/project/f3ff59f0-8d3f-4a09-8482-91d56adbd94d
2024-08-29 17:09:18,159 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/503d6f8d-f8b9-4c6b-91cf-7ab317791f14
2024-08-29 17:09:18,168 - DEBUG - ==>Verifying data for policy with id: b9f321d3-a655-47ad-8b34-e97bd4a2844a, fqn: ['default-domain', 'ctest-TestBasicPolicy-36228391', 'ctest-policy-allow-all-55559596']
2024-08-29 17:09:18,168 - INFO - VN ctest-vn-52817147 Policy verification: verify_vn_policy_in_api_server, status: True
2024-08-29 17:09:18,168 - DEBUG - Verifying the vn in opserver
2024-08-29 17:09:18,168 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-36228391:ctest-vn-52817147 virtual network link through opserver 10.0.0.29
2024-08-29 17:09:18,168 - DEBUG - Requesting: http://10.0.0.29:8081/analytics/uves/virtual-networks
2024-08-29 17:09:18,180 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-36228391:ctest-vn-52817147', 'href': 'http://10.0.0.29:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-36228391:ctest-vn-52817147?flat'}
2024-08-29 17:09:18,180 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-36228391:ctest-vn-52817147 is found in opserver
2024-08-29 17:09:18,201 - DEBUG - Do not have enough data to verify VN in agent
2024-08-29 17:09:18,208 - DEBUG - VRF ids for VN ctest-vn-52817147: {}
2024-08-29 17:09:18,281 - DEBUG - Services list from nova: [