2024-11-07 22:05:39,875 - INFO - Domain Default found not creating
2024-11-07 22:05:40,038 - INFO - Project ctest-TestBasicPolicy-66604799 not found, creating it
2024-11-07 22:05:40,517 - INFO - Created Project:ctest-TestBasicPolicy-66604799, ID : 5451055c-438a-477e-9252-f89cdd520cbf
2024-11-07 22:05:42,027 - INFO - ================================================================================
2024-11-07 22:05:42,027 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-11-07 22:05:42,027 - 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-07 22:05:42,280 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.7': '0'}} with
2024-11-07 22:05:42,281 - INFO - Initial checks done. Running the testcase now
2024-11-07 22:05:42,281 - INFO -
2024-11-07 22:05:42,857 - DEBUG - Response for create_network : {'network': {'id': '3d8c64b9-15c6-4ae0-ac85-32c36319edab', 'name': 'ctest-vn-73513432', 'tenant_id': '5451055c438a477e9252f89cdd520cbf', 'project_id': '5451055c438a477e9252f89cdd520cbf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-66604799', 'ctest-vn-73513432'], 'port_security_enabled': True, 'description': ''}}
2024-11-07 22:05:43,082 - DEBUG - Response for create_subnet : {'subnet': {'id': '89dd7f58-4065-4623-a4ef-364c82572305', 'name': '', 'tenant_id': '5451055c438a477e9252f89cdd520cbf', 'network_id': '3d8c64b9-15c6-4ae0-ac85-32c36319edab', 'ip_version': 4, 'cidr': '39.181.138.192/26', 'allocation_pools': [{'start': '39.181.138.194', 'end': '39.181.138.254'}], 'gateway_ip': '39.181.138.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '39.181.138.194', 'tags': [], 'project_id': '5451055c438a477e9252f89cdd520cbf'}}
2024-11-07 22:05:43,103 - INFO - Created VN ctest-vn-73513432
2024-11-07 22:05:43,162 - DEBUG - VN ctest-vn-73513432 UUID is 3d8c64b9-15c6-4ae0-ac85-32c36319edab
2024-11-07 22:05:43,456 - DEBUG - Response for create_network : {'network': {'id': '752110f9-a0ab-405d-8b0a-2167787086bf', 'name': 'ctest-vn-90372871', 'tenant_id': '5451055c438a477e9252f89cdd520cbf', 'project_id': '5451055c438a477e9252f89cdd520cbf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-66604799', 'ctest-vn-90372871'], 'port_security_enabled': True, 'description': ''}}
2024-11-07 22:05:43,662 - DEBUG - Response for create_subnet : {'subnet': {'id': 'da5ca583-5944-49ea-be6f-c03552896372', 'name': '', 'tenant_id': '5451055c438a477e9252f89cdd520cbf', 'network_id': '752110f9-a0ab-405d-8b0a-2167787086bf', 'ip_version': 4, 'cidr': '134.105.176.64/26', 'allocation_pools': [{'start': '134.105.176.66', 'end': '134.105.176.126'}], 'gateway_ip': '134.105.176.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '134.105.176.66', 'tags': [], 'project_id': '5451055c438a477e9252f89cdd520cbf'}}
2024-11-07 22:05:43,681 - INFO - Created VN ctest-vn-90372871
2024-11-07 22:05:43,738 - DEBUG - VN ctest-vn-90372871 UUID is 752110f9-a0ab-405d-8b0a-2167787086bf
2024-11-07 22:05:43,859 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-66604799:ctest-vn-73513432, 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-66604799:ctest-vn-90372871, 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-07 22:05:44,169 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3d8c64b9-15c6-4ae0-ac85-32c36319edab', 'name': 'ctest-vn-73513432', 'tenant_id': '5451055c438a477e9252f89cdd520cbf', 'project_id': '5451055c438a477e9252f89cdd520cbf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['89dd7f58-4065-4623-a4ef-364c82572305'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-66604799', 'ctest-vn-73513432'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-66604799', 'ctest-policy-allow-all-69125622']], 'subnet_ipam': [{'subnet_cidr': '39.181.138.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-07 22:05:44,414 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '752110f9-a0ab-405d-8b0a-2167787086bf', 'name': 'ctest-vn-90372871', 'tenant_id': '5451055c438a477e9252f89cdd520cbf', 'project_id': '5451055c438a477e9252f89cdd520cbf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['da5ca583-5944-49ea-be6f-c03552896372'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-66604799', 'ctest-vn-90372871'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-66604799', 'ctest-policy-allow-all-69125622']], 'subnet_ipam': [{'subnet_cidr': '134.105.176.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-07 22:05:44,594 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2024-11-07 22:05:44,888 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2024-11-07 22:05:44,930 - DEBUG - Requesting: http://10.0.0.22:8082/domain/66b65ec5-15e0-4afc-9c11-67c4b5aa4550
2024-11-07 22:05:44,946 - DEBUG - Requesting: http://10.0.0.22:8082/project/5451055c-438a-477e-9252-f89cdd520cbf
2024-11-07 22:05:45,204 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/3d8c64b9-15c6-4ae0-ac85-32c36319edab
2024-11-07 22:05:45,232 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/3d8c64b9-15c6-4ae0-ac85-32c36319edab
2024-11-07 22:05:45,271 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/7459be00-53e3-4326-a007-7043cb599e3f
2024-11-07 22:05:45,322 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/7459be00-53e3-4326-a007-7043cb599e3f
2024-11-07 22:05:45,336 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/af0391bf-7a7c-48a5-8792-1a7b6bf19bce
2024-11-07 22:05:45,349 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-07 22:05:45,349 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/3d8c64b9-15c6-4ae0-ac85-32c36319edab
2024-11-07 22:05:45,367 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/7459be00-53e3-4326-a007-7043cb599e3f
2024-11-07 22:05:45,412 - INFO - Verified VN network id 9 for VN 3d8c64b9-15c6-4ae0-ac85-32c36319edab
2024-11-07 22:05:45,413 - INFO - Verifications in API Server for VN ctest-vn-73513432 passed
2024-11-07 22:05:45,413 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/3d8c64b9-15c6-4ae0-ac85-32c36319edab
2024-11-07 22:05:45,430 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/7459be00-53e3-4326-a007-7043cb599e3f
2024-11-07 22:05:45,444 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/7459be00-53e3-4326-a007-7043cb599e3f
2024-11-07 22:05:45,458 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/af0391bf-7a7c-48a5-8792-1a7b6bf19bce
2024-11-07 22:05:45,479 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-66604799:ctest-vn-73513432', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-66604799', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4435030479150140128', 'uuid-lslong': '12431398161188777387'}, 'enable': 'true', 'created': '2024-11-07T22:05:42', 'last-modified': '2024-11-07T22:05:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.336027'}
2024-11-07 22:05:45,486 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-07 22:05:45,486 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-73513432 passed
2024-11-07 22:05:45,486 - DEBUG - ====Verifying policy data for ctest-vn-73513432 in API_Server ======
2024-11-07 22:05:45,486 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2024-11-07 22:05:45,495 - DEBUG - Requesting: http://10.0.0.22:8082/domain/66b65ec5-15e0-4afc-9c11-67c4b5aa4550
2024-11-07 22:05:45,525 - DEBUG - Requesting: http://10.0.0.22:8082/project/5451055c-438a-477e-9252-f89cdd520cbf
2024-11-07 22:05:45,660 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/3d8c64b9-15c6-4ae0-ac85-32c36319edab
2024-11-07 22:05:45,689 - DEBUG - ==>Verifying data for policy with id: d7712e63-988e-4561-8854-325a4f76730e, fqn: ['default-domain', 'ctest-TestBasicPolicy-66604799', 'ctest-policy-allow-all-69125622']
2024-11-07 22:05:45,689 - INFO - VN ctest-vn-73513432 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-07 22:05:45,689 - DEBUG - Verifying the vn in opserver
2024-11-07 22:05:45,689 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-66604799:ctest-vn-73513432 virtual network link through opserver 10.0.0.22
2024-11-07 22:05:45,689 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2024-11-07 22:05:46,003 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2024-11-07 22:05:46,070 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-66604799:ctest-vn-73513432', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-66604799:ctest-vn-73513432?flat'}
2024-11-07 22:05:46,070 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-66604799:ctest-vn-73513432 is found in opserver
2024-11-07 22:05:46,082 - DEBUG - Do not have enough data to verify VN in agent
2024-11-07 22:05:46,089 - DEBUG - VRF ids for VN ctest-vn-73513432: {}
2024-11-07 22:05:46,089 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2024-11-07 22:05:46,095 - DEBUG - Requesting: http://10.0.0.22:8082/domain/66b65ec5-15e0-4afc-9c11-67c4b5aa4550
2024-11-07 22:05:46,117 - DEBUG - Requesting: http://10.0.0.22:8082/project/5451055c-438a-477e-9252-f89cdd520cbf
2024-11-07 22:05:46,165 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/752110f9-a0ab-405d-8b0a-2167787086bf
2024-11-07 22:05:46,181 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/752110f9-a0ab-405d-8b0a-2167787086bf
2024-11-07 22:05:46,197 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/ea5c65ba-05ff-4016-90da-997dae9f9ad6
2024-11-07 22:05:46,205 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/ea5c65ba-05ff-4016-90da-997dae9f9ad6
2024-11-07 22:05:46,212 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/a260717a-3299-4732-b1e8-d7194baa5dfe
2024-11-07 22:05:46,218 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-07 22:05:46,219 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/752110f9-a0ab-405d-8b0a-2167787086bf
2024-11-07 22:05:46,230 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/ea5c65ba-05ff-4016-90da-997dae9f9ad6
2024-11-07 22:05:46,248 - INFO - Verified VN network id 10 for VN 752110f9-a0ab-405d-8b0a-2167787086bf
2024-11-07 22:05:46,248 - INFO - Verifications in API Server for VN ctest-vn-90372871 passed
2024-11-07 22:05:46,248 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/752110f9-a0ab-405d-8b0a-2167787086bf
2024-11-07 22:05:46,261 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/ea5c65ba-05ff-4016-90da-997dae9f9ad6
2024-11-07 22:05:46,269 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/ea5c65ba-05ff-4016-90da-997dae9f9ad6
2024-11-07 22:05:46,276 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/a260717a-3299-4732-b1e8-d7194baa5dfe
2024-11-07 22:05:46,289 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-66604799:ctest-vn-90372871', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-66604799', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8440045840997498973', 'uuid-lslong': '10018857049325078207'}, 'enable': 'true', 'created': '2024-11-07T22:05:43', 'last-modified': '2024-11-07T22:05:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.906732'}
2024-11-07 22:05:46,295 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-07 22:05:46,295 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-90372871 passed
2024-11-07 22:05:46,295 - DEBUG - ====Verifying policy data for ctest-vn-90372871 in API_Server ======
2024-11-07 22:05:46,295 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2024-11-07 22:05:46,301 - DEBUG - Requesting: http://10.0.0.22:8082/domain/66b65ec5-15e0-4afc-9c11-67c4b5aa4550
2024-11-07 22:05:46,312 - DEBUG - Requesting: http://10.0.0.22:8082/project/5451055c-438a-477e-9252-f89cdd520cbf
2024-11-07 22:05:46,396 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/752110f9-a0ab-405d-8b0a-2167787086bf
2024-11-07 22:05:46,409 - DEBUG - ==>Verifying data for policy with id: d7712e63-988e-4561-8854-325a4f76730e, fqn: ['default-domain', 'ctest-TestBasicPolicy-66604799', 'ctest-policy-allow-all-69125622']
2024-11-07 22:05:46,409 - INFO - VN ctest-vn-90372871 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-07 22:05:46,409 - DEBUG - Verifying the vn in opserver
2024-11-07 22:05:46,410 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-66604799:ctest-vn-90372871 virtual network link through opserver 10.0.0.22
2024-11-07 22:05:46,410 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2024-11-07 22:05:46,420 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-66604799:ctest-vn-90372871', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-66604799:ctest-vn-90372871?flat'}
2024-11-07 22:05:46,420 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-66604799:ctest-vn-90372871 is found in opserver
2024-11-07 22:05:46,431 - DEBUG - Do not have enough data to verify VN in agent
2024-11-07 22:05:46,436 - DEBUG - VRF ids for VN ctest-vn-90372871: {}
2024-11-07 22:05:46,486 - DEBUG - Services list from nova: [