2024-08-21 09:06:17,221 - INFO - Domain Default found not creating
2024-08-21 09:06:17,430 - INFO - Project ctest-TestBasicPolicy-24328848 not found, creating it
2024-08-21 09:06:17,919 - INFO - Created Project:ctest-TestBasicPolicy-24328848, ID : 3387891f-337c-455a-bf9d-7b6d9f9ecd85
2024-08-21 09:06:19,503 - INFO - ================================================================================
2024-08-21 09:06:19,503 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-08-21 09:06:19,503 - 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 09:06:19,758 - DEBUG - Nothing to compare xmpp stats {'10.0.0.23': {'10.20.0.28': '0'}} with
2024-08-21 09:06:19,759 - INFO - Initial checks done. Running the testcase now
2024-08-21 09:06:19,759 - INFO -
2024-08-21 09:06:20,334 - DEBUG - Response for create_network : {'network': {'id': '712bb64e-5697-44b4-9c26-1fa726c97ba3', 'name': 'ctest-vn-89658483', 'tenant_id': '3387891f337c455abf9d7b6d9f9ecd85', 'project_id': '3387891f337c455abf9d7b6d9f9ecd85', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-24328848', 'ctest-vn-89658483'], 'port_security_enabled': True, 'description': ''}}
2024-08-21 09:06:20,560 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a05ab8d1-d94c-4ee4-bf01-cfd35814ef0c', 'name': '', 'tenant_id': '3387891f337c455abf9d7b6d9f9ecd85', 'network_id': '712bb64e-5697-44b4-9c26-1fa726c97ba3', 'ip_version': 4, 'cidr': '205.2.98.64/26', 'allocation_pools': [{'start': '205.2.98.66', 'end': '205.2.98.126'}], 'gateway_ip': '205.2.98.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '205.2.98.66', 'tags': [], 'project_id': '3387891f337c455abf9d7b6d9f9ecd85'}}
2024-08-21 09:06:20,580 - INFO - Created VN ctest-vn-89658483
2024-08-21 09:06:20,633 - DEBUG - VN ctest-vn-89658483 UUID is 712bb64e-5697-44b4-9c26-1fa726c97ba3
2024-08-21 09:06:20,935 - DEBUG - Response for create_network : {'network': {'id': '37742b3d-675c-4020-8436-0e5c319200bf', 'name': 'ctest-vn-67641174', 'tenant_id': '3387891f337c455abf9d7b6d9f9ecd85', 'project_id': '3387891f337c455abf9d7b6d9f9ecd85', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-24328848', 'ctest-vn-67641174'], 'port_security_enabled': True, 'description': ''}}
2024-08-21 09:06:21,121 - DEBUG - Response for create_subnet : {'subnet': {'id': '2de8c2c1-eab8-4b39-9bc9-2bf2bfa03d45', 'name': '', 'tenant_id': '3387891f337c455abf9d7b6d9f9ecd85', 'network_id': '37742b3d-675c-4020-8436-0e5c319200bf', 'ip_version': 4, 'cidr': '22.234.96.128/26', 'allocation_pools': [{'start': '22.234.96.130', 'end': '22.234.96.190'}], 'gateway_ip': '22.234.96.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '22.234.96.130', 'tags': [], 'project_id': '3387891f337c455abf9d7b6d9f9ecd85'}}
2024-08-21 09:06:21,142 - INFO - Created VN ctest-vn-67641174
2024-08-21 09:06:21,197 - DEBUG - VN ctest-vn-67641174 UUID is 37742b3d-675c-4020-8436-0e5c319200bf
2024-08-21 09:06:21,325 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-24328848:ctest-vn-89658483, 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-24328848:ctest-vn-67641174, 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 09:06:21,642 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '712bb64e-5697-44b4-9c26-1fa726c97ba3', 'name': 'ctest-vn-89658483', 'tenant_id': '3387891f337c455abf9d7b6d9f9ecd85', 'project_id': '3387891f337c455abf9d7b6d9f9ecd85', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a05ab8d1-d94c-4ee4-bf01-cfd35814ef0c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-24328848', 'ctest-vn-89658483'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-24328848', 'ctest-policy-allow-all-16994407']], 'subnet_ipam': [{'subnet_cidr': '205.2.98.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-08-21 09:06:21,886 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '37742b3d-675c-4020-8436-0e5c319200bf', 'name': 'ctest-vn-67641174', 'tenant_id': '3387891f337c455abf9d7b6d9f9ecd85', 'project_id': '3387891f337c455abf9d7b6d9f9ecd85', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2de8c2c1-eab8-4b39-9bc9-2bf2bfa03d45'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-24328848', 'ctest-vn-67641174'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-24328848', 'ctest-policy-allow-all-16994407']], 'subnet_ipam': [{'subnet_cidr': '22.234.96.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-08-21 09:06:22,057 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2024-08-21 09:06:22,357 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2024-08-21 09:06:22,393 - DEBUG - Requesting: http://10.0.0.23:8082/domain/c71d6dcd-4970-4416-ad48-05f2e0e07161
2024-08-21 09:06:22,408 - DEBUG - Requesting: http://10.0.0.23:8082/project/3387891f-337c-455a-bf9d-7b6d9f9ecd85
2024-08-21 09:06:22,482 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/712bb64e-5697-44b4-9c26-1fa726c97ba3
2024-08-21 09:06:22,493 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/712bb64e-5697-44b4-9c26-1fa726c97ba3
2024-08-21 09:06:22,501 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/60d3c3e2-ed8c-45c7-9fe3-90c27d461f33
2024-08-21 09:06:22,509 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/60d3c3e2-ed8c-45c7-9fe3-90c27d461f33
2024-08-21 09:06:22,516 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/fb91ed17-94e3-495e-82a7-51627e0a88c1
2024-08-21 09:06:22,523 - DEBUG - Route Targets: ['target:64512:8000005']
2024-08-21 09:06:22,523 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/712bb64e-5697-44b4-9c26-1fa726c97ba3
2024-08-21 09:06:22,531 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/60d3c3e2-ed8c-45c7-9fe3-90c27d461f33
2024-08-21 09:06:22,545 - INFO - Verified VN network id 9 for VN 712bb64e-5697-44b4-9c26-1fa726c97ba3
2024-08-21 09:06:22,546 - INFO - Verifications in API Server for VN ctest-vn-89658483 passed
2024-08-21 09:06:22,546 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/712bb64e-5697-44b4-9c26-1fa726c97ba3
2024-08-21 09:06:22,555 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/60d3c3e2-ed8c-45c7-9fe3-90c27d461f33
2024-08-21 09:06:22,562 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/60d3c3e2-ed8c-45c7-9fe3-90c27d461f33
2024-08-21 09:06:22,569 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/fb91ed17-94e3-495e-82a7-51627e0a88c1
2024-08-21 09:06:22,583 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-24328848:ctest-vn-89658483', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-24328848', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8154811997860873396', 'uuid-lslong': '11251715521802501027'}, 'enable': 'true', 'created': '2024-08-21T09:06:20', 'last-modified': '2024-08-21T09:06:21', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.963660'}
2024-08-21 09:06:22,589 - DEBUG - Route Targets: ['target:64512:8000005']
2024-08-21 09:06:22,590 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-89658483 passed
2024-08-21 09:06:22,590 - DEBUG - ====Verifying policy data for ctest-vn-89658483 in API_Server ======
2024-08-21 09:06:22,590 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2024-08-21 09:06:22,596 - DEBUG - Requesting: http://10.0.0.23:8082/domain/c71d6dcd-4970-4416-ad48-05f2e0e07161
2024-08-21 09:06:22,609 - DEBUG - Requesting: http://10.0.0.23:8082/project/3387891f-337c-455a-bf9d-7b6d9f9ecd85
2024-08-21 09:06:22,679 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/712bb64e-5697-44b4-9c26-1fa726c97ba3
2024-08-21 09:06:22,687 - DEBUG - ==>Verifying data for policy with id: deb22332-8ccd-4db9-b7ee-f89024c5b3d0, fqn: ['default-domain', 'ctest-TestBasicPolicy-24328848', 'ctest-policy-allow-all-16994407']
2024-08-21 09:06:22,687 - INFO - VN ctest-vn-89658483 Policy verification: verify_vn_policy_in_api_server, status: True
2024-08-21 09:06:22,687 - DEBUG - Verifying the vn in opserver
2024-08-21 09:06:22,687 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-24328848:ctest-vn-89658483 virtual network link through opserver 10.0.0.23
2024-08-21 09:06:22,688 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks
2024-08-21 09:06:22,982 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks
2024-08-21 09:06:23,044 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-24328848:ctest-vn-89658483', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-24328848:ctest-vn-89658483?flat'}
2024-08-21 09:06:23,044 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-24328848:ctest-vn-89658483 is found in opserver
2024-08-21 09:06:23,055 - DEBUG - Do not have enough data to verify VN in agent
2024-08-21 09:06:23,061 - DEBUG - VRF ids for VN ctest-vn-89658483: {}
2024-08-21 09:06:23,061 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2024-08-21 09:06:23,067 - DEBUG - Requesting: http://10.0.0.23:8082/domain/c71d6dcd-4970-4416-ad48-05f2e0e07161
2024-08-21 09:06:23,082 - DEBUG - Requesting: http://10.0.0.23:8082/project/3387891f-337c-455a-bf9d-7b6d9f9ecd85
2024-08-21 09:06:23,150 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/37742b3d-675c-4020-8436-0e5c319200bf
2024-08-21 09:06:23,162 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/37742b3d-675c-4020-8436-0e5c319200bf
2024-08-21 09:06:23,171 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/8d5d8496-8d0e-40c3-8587-b3e047bea498
2024-08-21 09:06:23,178 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/8d5d8496-8d0e-40c3-8587-b3e047bea498
2024-08-21 09:06:23,186 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/a7c53259-c954-41cc-ab1c-022f2ded3198
2024-08-21 09:06:23,193 - DEBUG - Route Targets: ['target:64512:8000006']
2024-08-21 09:06:23,193 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/37742b3d-675c-4020-8436-0e5c319200bf
2024-08-21 09:06:23,202 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/8d5d8496-8d0e-40c3-8587-b3e047bea498
2024-08-21 09:06:23,216 - INFO - Verified VN network id 10 for VN 37742b3d-675c-4020-8436-0e5c319200bf
2024-08-21 09:06:23,216 - INFO - Verifications in API Server for VN ctest-vn-67641174 passed
2024-08-21 09:06:23,216 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/37742b3d-675c-4020-8436-0e5c319200bf
2024-08-21 09:06:23,225 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/8d5d8496-8d0e-40c3-8587-b3e047bea498
2024-08-21 09:06:23,233 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/8d5d8496-8d0e-40c3-8587-b3e047bea498
2024-08-21 09:06:23,240 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/a7c53259-c954-41cc-ab1c-022f2ded3198
2024-08-21 09:06:23,254 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-24328848:ctest-vn-67641174', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-24328848', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3995866312111570976', 'uuid-lslong': '9526817850880295103'}, 'enable': 'true', 'created': '2024-08-21T09:06:20', 'last-modified': '2024-08-21T09:06:21', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.389382'}
2024-08-21 09:06:23,260 - DEBUG - Route Targets: ['target:64512:8000006']
2024-08-21 09:06:23,260 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-67641174 passed
2024-08-21 09:06:23,261 - DEBUG - ====Verifying policy data for ctest-vn-67641174 in API_Server ======
2024-08-21 09:06:23,261 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2024-08-21 09:06:23,267 - DEBUG - Requesting: http://10.0.0.23:8082/domain/c71d6dcd-4970-4416-ad48-05f2e0e07161
2024-08-21 09:06:23,279 - DEBUG - Requesting: http://10.0.0.23:8082/project/3387891f-337c-455a-bf9d-7b6d9f9ecd85
2024-08-21 09:06:23,350 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/37742b3d-675c-4020-8436-0e5c319200bf
2024-08-21 09:06:23,360 - DEBUG - ==>Verifying data for policy with id: deb22332-8ccd-4db9-b7ee-f89024c5b3d0, fqn: ['default-domain', 'ctest-TestBasicPolicy-24328848', 'ctest-policy-allow-all-16994407']
2024-08-21 09:06:23,360 - INFO - VN ctest-vn-67641174 Policy verification: verify_vn_policy_in_api_server, status: True
2024-08-21 09:06:23,360 - DEBUG - Verifying the vn in opserver
2024-08-21 09:06:23,360 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-24328848:ctest-vn-67641174 virtual network link through opserver 10.0.0.23
2024-08-21 09:06:23,360 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks
2024-08-21 09:06:23,372 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-24328848:ctest-vn-67641174', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-24328848:ctest-vn-67641174?flat'}
2024-08-21 09:06:23,372 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-24328848:ctest-vn-67641174 is found in opserver
2024-08-21 09:06:23,384 - DEBUG - Do not have enough data to verify VN in agent
2024-08-21 09:06:23,390 - DEBUG - VRF ids for VN ctest-vn-67641174: {}
2024-08-21 09:06:23,446 - DEBUG - Services list from nova: [