2024-08-21 12:11:07,955 - INFO - Domain Default found not creating
2024-08-21 12:11:08,114 - INFO - Project ctest-TestBasicPolicy-40656961 not found, creating it
2024-08-21 12:11:08,573 - INFO - Created Project:ctest-TestBasicPolicy-40656961, ID : 6b075826-386f-4b19-891c-f4026faf4c70
2024-08-21 12:11:10,070 - INFO - ================================================================================
2024-08-21 12:11:10,070 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-08-21 12:11:10,070 - 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-21 12:11:10,325 - DEBUG - Nothing to compare xmpp stats {'10.0.0.37': {'10.20.0.10': '0'}} with
2024-08-21 12:11:10,325 - INFO - Initial checks done. Running the testcase now
2024-08-21 12:11:10,325 - INFO -
2024-08-21 12:11:10,921 - DEBUG - Response for create_network : {'network': {'id': 'f1851162-1027-4424-b62e-54a8f0ae95d9', 'name': 'ctest-vn-01637628', 'tenant_id': '6b075826386f4b19891cf4026faf4c70', 'project_id': '6b075826386f4b19891cf4026faf4c70', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40656961', 'ctest-vn-01637628'], 'port_security_enabled': True, 'description': ''}}
2024-08-21 12:11:11,101 - DEBUG - Response for create_subnet : {'subnet': {'id': '47a260d4-582d-43b4-b8a9-a44a3388f008', 'name': '', 'tenant_id': '6b075826386f4b19891cf4026faf4c70', 'network_id': 'f1851162-1027-4424-b62e-54a8f0ae95d9', 'ip_version': 4, 'cidr': '187.144.80.0/26', 'allocation_pools': [{'start': '187.144.80.2', 'end': '187.144.80.62'}], 'gateway_ip': '187.144.80.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '187.144.80.2', 'tags': [], 'project_id': '6b075826386f4b19891cf4026faf4c70'}}
2024-08-21 12:11:11,121 - INFO - Created VN ctest-vn-01637628
2024-08-21 12:11:11,173 - DEBUG - VN ctest-vn-01637628 UUID is f1851162-1027-4424-b62e-54a8f0ae95d9
2024-08-21 12:11:12,618 - DEBUG - Response for create_network : {'network': {'id': '817409ed-ca5f-45ea-9ee8-007d319e15e3', 'name': 'ctest-vn-13703933', 'tenant_id': '6b075826386f4b19891cf4026faf4c70', 'project_id': '6b075826386f4b19891cf4026faf4c70', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40656961', 'ctest-vn-13703933'], 'port_security_enabled': True, 'description': ''}}
2024-08-21 12:11:12,821 - DEBUG - Response for create_subnet : {'subnet': {'id': '261048d8-82e3-4ca1-9a74-7d17a438a484', 'name': '', 'tenant_id': '6b075826386f4b19891cf4026faf4c70', 'network_id': '817409ed-ca5f-45ea-9ee8-007d319e15e3', 'ip_version': 4, 'cidr': '104.12.214.192/26', 'allocation_pools': [{'start': '104.12.214.194', 'end': '104.12.214.254'}], 'gateway_ip': '104.12.214.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '104.12.214.194', 'tags': [], 'project_id': '6b075826386f4b19891cf4026faf4c70'}}
2024-08-21 12:11:12,842 - INFO - Created VN ctest-vn-13703933
2024-08-21 12:11:12,893 - DEBUG - VN ctest-vn-13703933 UUID is 817409ed-ca5f-45ea-9ee8-007d319e15e3
2024-08-21 12:11:13,023 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-40656961:ctest-vn-01637628, 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-40656961:ctest-vn-13703933, 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-21 12:11:13,315 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f1851162-1027-4424-b62e-54a8f0ae95d9', 'name': 'ctest-vn-01637628', 'tenant_id': '6b075826386f4b19891cf4026faf4c70', 'project_id': '6b075826386f4b19891cf4026faf4c70', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['47a260d4-582d-43b4-b8a9-a44a3388f008'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40656961', 'ctest-vn-01637628'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-40656961', 'ctest-policy-allow-all-19724218']], 'subnet_ipam': [{'subnet_cidr': '187.144.80.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-08-21 12:11:13,551 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '817409ed-ca5f-45ea-9ee8-007d319e15e3', 'name': 'ctest-vn-13703933', 'tenant_id': '6b075826386f4b19891cf4026faf4c70', 'project_id': '6b075826386f4b19891cf4026faf4c70', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['261048d8-82e3-4ca1-9a74-7d17a438a484'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40656961', 'ctest-vn-13703933'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-40656961', 'ctest-policy-allow-all-19724218']], 'subnet_ipam': [{'subnet_cidr': '104.12.214.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-08-21 12:11:13,709 - DEBUG - Requesting: http://10.0.0.37:8082/domains
2024-08-21 12:11:14,003 - DEBUG - Requesting: http://10.0.0.37:8082/domains
2024-08-21 12:11:14,035 - DEBUG - Requesting: http://10.0.0.37:8082/domain/ffc734a5-5d7b-48d7-89ee-012dd3170410
2024-08-21 12:11:14,048 - DEBUG - Requesting: http://10.0.0.37:8082/project/6b075826-386f-4b19-891c-f4026faf4c70
2024-08-21 12:11:14,117 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/f1851162-1027-4424-b62e-54a8f0ae95d9
2024-08-21 12:11:14,127 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/f1851162-1027-4424-b62e-54a8f0ae95d9
2024-08-21 12:11:14,135 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/c5367210-4614-4c3f-9728-983bd7497cbf
2024-08-21 12:11:14,142 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/c5367210-4614-4c3f-9728-983bd7497cbf
2024-08-21 12:11:14,148 - DEBUG - Requesting: http://10.0.0.37:8082/route-target/46778b63-be71-4aa8-9bfe-39ecb323d5eb
2024-08-21 12:11:14,156 - DEBUG - Route Targets: ['target:64512:8000005']
2024-08-21 12:11:14,156 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/f1851162-1027-4424-b62e-54a8f0ae95d9
2024-08-21 12:11:14,163 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/c5367210-4614-4c3f-9728-983bd7497cbf
2024-08-21 12:11:14,175 - INFO - Verified VN network id 8 for VN f1851162-1027-4424-b62e-54a8f0ae95d9
2024-08-21 12:11:14,175 - INFO - Verifications in API Server for VN ctest-vn-01637628 passed
2024-08-21 12:11:14,175 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/f1851162-1027-4424-b62e-54a8f0ae95d9
2024-08-21 12:11:14,186 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/c5367210-4614-4c3f-9728-983bd7497cbf
2024-08-21 12:11:14,193 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/c5367210-4614-4c3f-9728-983bd7497cbf
2024-08-21 12:11:14,201 - DEBUG - Requesting: http://10.0.0.37:8082/route-target/46778b63-be71-4aa8-9bfe-39ecb323d5eb
2024-08-21 12:11:14,214 - DEBUG - Control-node 10.0.0.37 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-40656961:ctest-vn-01637628', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-40656961', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17403335447918625828', 'uuid-lslong': '13127523048400786905'}, 'enable': 'true', 'created': '2024-08-21T12:11:10', 'last-modified': '2024-08-21T12:11:13', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.920987'}
2024-08-21 12:11:14,220 - DEBUG - Route Targets: ['target:64512:8000005']
2024-08-21 12:11:14,220 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-01637628 passed
2024-08-21 12:11:14,220 - DEBUG - ====Verifying policy data for ctest-vn-01637628 in API_Server ======
2024-08-21 12:11:14,220 - DEBUG - Requesting: http://10.0.0.37:8082/domains
2024-08-21 12:11:14,226 - DEBUG - Requesting: http://10.0.0.37:8082/domain/ffc734a5-5d7b-48d7-89ee-012dd3170410
2024-08-21 12:11:14,238 - DEBUG - Requesting: http://10.0.0.37:8082/project/6b075826-386f-4b19-891c-f4026faf4c70
2024-08-21 12:11:14,310 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/f1851162-1027-4424-b62e-54a8f0ae95d9
2024-08-21 12:11:14,318 - DEBUG - ==>Verifying data for policy with id: 8d616047-e9c7-401f-a474-1fd2056e17a9, fqn: ['default-domain', 'ctest-TestBasicPolicy-40656961', 'ctest-policy-allow-all-19724218']
2024-08-21 12:11:14,318 - INFO - VN ctest-vn-01637628 Policy verification: verify_vn_policy_in_api_server, status: True
2024-08-21 12:11:14,318 - DEBUG - Verifying the vn in opserver
2024-08-21 12:11:14,318 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-40656961:ctest-vn-01637628 virtual network link through opserver 10.0.0.37
2024-08-21 12:11:14,318 - DEBUG - Requesting: http://10.0.0.37:8081/analytics/uves/virtual-networks
2024-08-21 12:11:14,887 - DEBUG - Requesting: http://10.0.0.37:8081/analytics/uves/virtual-networks
2024-08-21 12:11:14,971 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-40656961:ctest-vn-01637628', 'href': 'http://10.0.0.37:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-40656961:ctest-vn-01637628?flat'}
2024-08-21 12:11:14,971 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-40656961:ctest-vn-01637628 is found in opserver
2024-08-21 12:11:14,983 - DEBUG - Do not have enough data to verify VN in agent
2024-08-21 12:11:14,988 - DEBUG - VRF ids for VN ctest-vn-01637628: {}
2024-08-21 12:11:14,988 - DEBUG - Requesting: http://10.0.0.37:8082/domains
2024-08-21 12:11:14,994 - DEBUG - Requesting: http://10.0.0.37:8082/domain/ffc734a5-5d7b-48d7-89ee-012dd3170410
2024-08-21 12:11:15,006 - DEBUG - Requesting: http://10.0.0.37:8082/project/6b075826-386f-4b19-891c-f4026faf4c70
2024-08-21 12:11:15,076 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/817409ed-ca5f-45ea-9ee8-007d319e15e3
2024-08-21 12:11:15,086 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/817409ed-ca5f-45ea-9ee8-007d319e15e3
2024-08-21 12:11:15,094 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/b89d4467-99f0-4ac0-9795-9c7543297583
2024-08-21 12:11:15,101 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/b89d4467-99f0-4ac0-9795-9c7543297583
2024-08-21 12:11:15,107 - DEBUG - Requesting: http://10.0.0.37:8082/route-target/ce5972ba-bb10-467f-a097-3b77a22aacff
2024-08-21 12:11:15,114 - DEBUG - Route Targets: ['target:64512:8000006']
2024-08-21 12:11:15,114 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/817409ed-ca5f-45ea-9ee8-007d319e15e3
2024-08-21 12:11:15,122 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/b89d4467-99f0-4ac0-9795-9c7543297583
2024-08-21 12:11:15,133 - INFO - Verified VN network id 9 for VN 817409ed-ca5f-45ea-9ee8-007d319e15e3
2024-08-21 12:11:15,133 - INFO - Verifications in API Server for VN ctest-vn-13703933 passed
2024-08-21 12:11:15,133 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/817409ed-ca5f-45ea-9ee8-007d319e15e3
2024-08-21 12:11:15,141 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/b89d4467-99f0-4ac0-9795-9c7543297583
2024-08-21 12:11:15,147 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/b89d4467-99f0-4ac0-9795-9c7543297583
2024-08-21 12:11:15,155 - DEBUG - Requesting: http://10.0.0.37:8082/route-target/ce5972ba-bb10-467f-a097-3b77a22aacff
2024-08-21 12:11:15,167 - DEBUG - Control-node 10.0.0.37 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-40656961:ctest-vn-13703933', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-40656961', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9328091645098280426', 'uuid-lslong': '11450402590292841955'}, 'enable': 'true', 'created': '2024-08-21T12:11:12', 'last-modified': '2024-08-21T12:11:13', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.643072'}
2024-08-21 12:11:15,174 - DEBUG - Route Targets: ['target:64512:8000006']
2024-08-21 12:11:15,174 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-13703933 passed
2024-08-21 12:11:15,174 - DEBUG - ====Verifying policy data for ctest-vn-13703933 in API_Server ======
2024-08-21 12:11:15,174 - DEBUG - Requesting: http://10.0.0.37:8082/domains
2024-08-21 12:11:15,180 - DEBUG - Requesting: http://10.0.0.37:8082/domain/ffc734a5-5d7b-48d7-89ee-012dd3170410
2024-08-21 12:11:15,193 - DEBUG - Requesting: http://10.0.0.37:8082/project/6b075826-386f-4b19-891c-f4026faf4c70
2024-08-21 12:11:15,258 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/817409ed-ca5f-45ea-9ee8-007d319e15e3
2024-08-21 12:11:15,270 - DEBUG - ==>Verifying data for policy with id: 8d616047-e9c7-401f-a474-1fd2056e17a9, fqn: ['default-domain', 'ctest-TestBasicPolicy-40656961', 'ctest-policy-allow-all-19724218']
2024-08-21 12:11:15,270 - INFO - VN ctest-vn-13703933 Policy verification: verify_vn_policy_in_api_server, status: True
2024-08-21 12:11:15,270 - DEBUG - Verifying the vn in opserver
2024-08-21 12:11:15,270 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-40656961:ctest-vn-13703933 virtual network link through opserver 10.0.0.37
2024-08-21 12:11:15,270 - DEBUG - Requesting: http://10.0.0.37:8081/analytics/uves/virtual-networks
2024-08-21 12:11:15,281 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-40656961:ctest-vn-13703933', 'href': 'http://10.0.0.37:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-40656961:ctest-vn-13703933?flat'}
2024-08-21 12:11:15,281 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-40656961:ctest-vn-13703933 is found in opserver
2024-08-21 12:11:15,292 - DEBUG - Do not have enough data to verify VN in agent
2024-08-21 12:11:15,298 - DEBUG - VRF ids for VN ctest-vn-13703933: {}
2024-08-21 12:11:15,354 - DEBUG - Services list from nova: [