2024-10-26 15:06:01,202 - INFO - Domain Default found not creating
2024-10-26 15:06:01,389 - INFO - Project ctest-TestBasicPolicy-31234324 not found, creating it
2024-10-26 15:06:01,908 - INFO - Created Project:ctest-TestBasicPolicy-31234324, ID : 24b67b7c-8e07-4ac8-9970-8046d248a892
2024-10-26 15:06:03,520 - INFO - ================================================================================
2024-10-26 15:06:03,520 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-10-26 15:06:03,521 - 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-10-26 15:06:03,786 - DEBUG - Nothing to compare xmpp stats {'10.0.0.31': {'10.20.0.14': '0'}} with
2024-10-26 15:06:03,786 - INFO - Initial checks done. Running the testcase now
2024-10-26 15:06:03,787 - INFO -
2024-10-26 15:06:04,384 - DEBUG - Response for create_network : {'network': {'id': '95080636-4fba-47c7-8106-036623be8f33', 'name': 'ctest-vn-41542758', 'tenant_id': '24b67b7c8e074ac899708046d248a892', 'project_id': '24b67b7c8e074ac899708046d248a892', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-31234324', 'ctest-vn-41542758'], 'port_security_enabled': True, 'description': ''}}
2024-10-26 15:06:04,555 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e0d7145a-07af-466e-b7d2-b11ecdf357e0', 'name': '', 'tenant_id': '24b67b7c8e074ac899708046d248a892', 'network_id': '95080636-4fba-47c7-8106-036623be8f33', 'ip_version': 4, 'cidr': '54.24.123.0/26', 'allocation_pools': [{'start': '54.24.123.2', 'end': '54.24.123.62'}], 'gateway_ip': '54.24.123.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '54.24.123.2', 'tags': [], 'project_id': '24b67b7c8e074ac899708046d248a892'}}
2024-10-26 15:06:04,577 - INFO - Created VN ctest-vn-41542758
2024-10-26 15:06:04,634 - DEBUG - VN ctest-vn-41542758 UUID is 95080636-4fba-47c7-8106-036623be8f33
2024-10-26 15:06:04,965 - DEBUG - Response for create_network : {'network': {'id': '397bfe37-2ee8-4952-a234-acfc8747dcd8', 'name': 'ctest-vn-01420379', 'tenant_id': '24b67b7c8e074ac899708046d248a892', 'project_id': '24b67b7c8e074ac899708046d248a892', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-31234324', 'ctest-vn-01420379'], 'port_security_enabled': True, 'description': ''}}
2024-10-26 15:06:05,170 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e1c21d1e-1a98-4330-b430-c2a073b9dc23', 'name': '', 'tenant_id': '24b67b7c8e074ac899708046d248a892', 'network_id': '397bfe37-2ee8-4952-a234-acfc8747dcd8', 'ip_version': 4, 'cidr': '38.189.123.192/26', 'allocation_pools': [{'start': '38.189.123.194', 'end': '38.189.123.254'}], 'gateway_ip': '38.189.123.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '38.189.123.194', 'tags': [], 'project_id': '24b67b7c8e074ac899708046d248a892'}}
2024-10-26 15:06:05,193 - INFO - Created VN ctest-vn-01420379
2024-10-26 15:06:05,262 - DEBUG - VN ctest-vn-01420379 UUID is 397bfe37-2ee8-4952-a234-acfc8747dcd8
2024-10-26 15:06:05,387 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-31234324:ctest-vn-41542758, 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-31234324:ctest-vn-01420379, 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-10-26 15:06:05,704 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '95080636-4fba-47c7-8106-036623be8f33', 'name': 'ctest-vn-41542758', 'tenant_id': '24b67b7c8e074ac899708046d248a892', 'project_id': '24b67b7c8e074ac899708046d248a892', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e0d7145a-07af-466e-b7d2-b11ecdf357e0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-31234324', 'ctest-vn-41542758'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-31234324', 'ctest-policy-allow-all-07572732']], 'subnet_ipam': [{'subnet_cidr': '54.24.123.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-10-26 15:06:05,950 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '397bfe37-2ee8-4952-a234-acfc8747dcd8', 'name': 'ctest-vn-01420379', 'tenant_id': '24b67b7c8e074ac899708046d248a892', 'project_id': '24b67b7c8e074ac899708046d248a892', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e1c21d1e-1a98-4330-b430-c2a073b9dc23'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-31234324', 'ctest-vn-01420379'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-31234324', 'ctest-policy-allow-all-07572732']], 'subnet_ipam': [{'subnet_cidr': '38.189.123.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-10-26 15:06:06,154 - DEBUG - Requesting: http://10.0.0.31:8082/domains
2024-10-26 15:06:06,465 - DEBUG - Requesting: http://10.0.0.31:8082/domains
2024-10-26 15:06:06,507 - DEBUG - Requesting: http://10.0.0.31:8082/domain/f3c65a15-1650-4c61-b470-715a277c134a
2024-10-26 15:06:06,529 - DEBUG - Requesting: http://10.0.0.31:8082/project/24b67b7c-8e07-4ac8-9970-8046d248a892
2024-10-26 15:06:06,621 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/95080636-4fba-47c7-8106-036623be8f33
2024-10-26 15:06:06,638 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/95080636-4fba-47c7-8106-036623be8f33
2024-10-26 15:06:06,657 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/9553f0e7-0715-42e1-b22b-d390175f0b1b
2024-10-26 15:06:06,670 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/9553f0e7-0715-42e1-b22b-d390175f0b1b
2024-10-26 15:06:06,683 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/3f081a2d-bbcf-4528-9d4f-ecdd017035fb
2024-10-26 15:06:06,693 - DEBUG - Route Targets: ['target:64512:8000005']
2024-10-26 15:06:06,693 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/95080636-4fba-47c7-8106-036623be8f33
2024-10-26 15:06:06,713 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/9553f0e7-0715-42e1-b22b-d390175f0b1b
2024-10-26 15:06:06,736 - INFO - Verified VN network id 8 for VN 95080636-4fba-47c7-8106-036623be8f33
2024-10-26 15:06:06,736 - INFO - Verifications in API Server for VN ctest-vn-41542758 passed
2024-10-26 15:06:06,736 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/95080636-4fba-47c7-8106-036623be8f33
2024-10-26 15:06:06,761 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/9553f0e7-0715-42e1-b22b-d390175f0b1b
2024-10-26 15:06:06,773 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/9553f0e7-0715-42e1-b22b-d390175f0b1b
2024-10-26 15:06:06,783 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/3f081a2d-bbcf-4528-9d4f-ecdd017035fb
2024-10-26 15:06:06,802 - DEBUG - Control-node 10.0.0.31 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-31234324:ctest-vn-41542758', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-31234324', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10738840141800556487', 'uuid-lslong': '9297122217974206259'}, 'enable': 'true', 'created': '2024-10-26T15:06:04', 'last-modified': '2024-10-26T15:06:05', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.118726'}
2024-10-26 15:06:06,809 - DEBUG - Route Targets: ['target:64512:8000005']
2024-10-26 15:06:06,809 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-41542758 passed
2024-10-26 15:06:06,809 - DEBUG - ====Verifying policy data for ctest-vn-41542758 in API_Server ======
2024-10-26 15:06:06,809 - DEBUG - Requesting: http://10.0.0.31:8082/domains
2024-10-26 15:06:06,815 - DEBUG - Requesting: http://10.0.0.31:8082/domain/f3c65a15-1650-4c61-b470-715a277c134a
2024-10-26 15:06:06,829 - DEBUG - Requesting: http://10.0.0.31:8082/project/24b67b7c-8e07-4ac8-9970-8046d248a892
2024-10-26 15:06:06,915 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/95080636-4fba-47c7-8106-036623be8f33
2024-10-26 15:06:06,933 - DEBUG - ==>Verifying data for policy with id: 0a6b2c12-0d31-4592-8a5b-7fe3a0f2e3b1, fqn: ['default-domain', 'ctest-TestBasicPolicy-31234324', 'ctest-policy-allow-all-07572732']
2024-10-26 15:06:06,933 - INFO - VN ctest-vn-41542758 Policy verification: verify_vn_policy_in_api_server, status: True
2024-10-26 15:06:06,933 - DEBUG - Verifying the vn in opserver
2024-10-26 15:06:06,933 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-31234324:ctest-vn-41542758 virtual network link through opserver 10.0.0.31
2024-10-26 15:06:06,933 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks
2024-10-26 15:06:07,240 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks
2024-10-26 15:06:07,314 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-31234324:ctest-vn-41542758', 'href': 'http://10.0.0.31:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-31234324:ctest-vn-41542758?flat'}
2024-10-26 15:06:07,314 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-31234324:ctest-vn-41542758 is found in opserver
2024-10-26 15:06:07,327 - DEBUG - Do not have enough data to verify VN in agent
2024-10-26 15:06:07,335 - DEBUG - VRF ids for VN ctest-vn-41542758: {}
2024-10-26 15:06:07,335 - DEBUG - Requesting: http://10.0.0.31:8082/domains
2024-10-26 15:06:07,341 - DEBUG - Requesting: http://10.0.0.31:8082/domain/f3c65a15-1650-4c61-b470-715a277c134a
2024-10-26 15:06:07,356 - DEBUG - Requesting: http://10.0.0.31:8082/project/24b67b7c-8e07-4ac8-9970-8046d248a892
2024-10-26 15:06:07,445 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/397bfe37-2ee8-4952-a234-acfc8747dcd8
2024-10-26 15:06:07,464 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/397bfe37-2ee8-4952-a234-acfc8747dcd8
2024-10-26 15:06:07,484 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/c40dec0e-e48f-414b-ba57-f96656a11262
2024-10-26 15:06:07,497 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/c40dec0e-e48f-414b-ba57-f96656a11262
2024-10-26 15:06:07,508 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/0f0552e9-b0f5-4bee-b2f9-6184a5a3c551
2024-10-26 15:06:07,516 - DEBUG - Route Targets: ['target:64512:8000006']
2024-10-26 15:06:07,516 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/397bfe37-2ee8-4952-a234-acfc8747dcd8
2024-10-26 15:06:07,532 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/c40dec0e-e48f-414b-ba57-f96656a11262
2024-10-26 15:06:07,558 - INFO - Verified VN network id 9 for VN 397bfe37-2ee8-4952-a234-acfc8747dcd8
2024-10-26 15:06:07,558 - INFO - Verifications in API Server for VN ctest-vn-01420379 passed
2024-10-26 15:06:07,558 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/397bfe37-2ee8-4952-a234-acfc8747dcd8
2024-10-26 15:06:07,574 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/c40dec0e-e48f-414b-ba57-f96656a11262
2024-10-26 15:06:07,583 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/c40dec0e-e48f-414b-ba57-f96656a11262
2024-10-26 15:06:07,592 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/0f0552e9-b0f5-4bee-b2f9-6184a5a3c551
2024-10-26 15:06:07,606 - DEBUG - Control-node 10.0.0.31 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-31234324:ctest-vn-01420379', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-31234324', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4142183795260934482', 'uuid-lslong': '11688157133534649560'}, 'enable': 'true', 'created': '2024-10-26T15:06:04', 'last-modified': '2024-10-26T15:06:05', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.682509'}
2024-10-26 15:06:07,612 - DEBUG - Route Targets: ['target:64512:8000006']
2024-10-26 15:06:07,612 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-01420379 passed
2024-10-26 15:06:07,613 - DEBUG - ====Verifying policy data for ctest-vn-01420379 in API_Server ======
2024-10-26 15:06:07,613 - DEBUG - Requesting: http://10.0.0.31:8082/domains
2024-10-26 15:06:07,619 - DEBUG - Requesting: http://10.0.0.31:8082/domain/f3c65a15-1650-4c61-b470-715a277c134a
2024-10-26 15:06:07,633 - DEBUG - Requesting: http://10.0.0.31:8082/project/24b67b7c-8e07-4ac8-9970-8046d248a892
2024-10-26 15:06:07,719 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/397bfe37-2ee8-4952-a234-acfc8747dcd8
2024-10-26 15:06:07,739 - DEBUG - ==>Verifying data for policy with id: 0a6b2c12-0d31-4592-8a5b-7fe3a0f2e3b1, fqn: ['default-domain', 'ctest-TestBasicPolicy-31234324', 'ctest-policy-allow-all-07572732']
2024-10-26 15:06:07,740 - INFO - VN ctest-vn-01420379 Policy verification: verify_vn_policy_in_api_server, status: True
2024-10-26 15:06:07,740 - DEBUG - Verifying the vn in opserver
2024-10-26 15:06:07,740 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-31234324:ctest-vn-01420379 virtual network link through opserver 10.0.0.31
2024-10-26 15:06:07,740 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks
2024-10-26 15:06:07,754 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-31234324:ctest-vn-01420379', 'href': 'http://10.0.0.31:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-31234324:ctest-vn-01420379?flat'}
2024-10-26 15:06:07,754 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-31234324:ctest-vn-01420379 is found in opserver
2024-10-26 15:06:07,767 - DEBUG - Do not have enough data to verify VN in agent
2024-10-26 15:06:07,775 - DEBUG - VRF ids for VN ctest-vn-01420379: {}
2024-10-26 15:06:07,842 - DEBUG - Services list from nova: [