2024-08-20 08:26:27,897 - INFO - Domain Default found not creating
2024-08-20 08:26:28,047 - INFO - Project ctest-TestBasicPolicy-80855412 not found, creating it
2024-08-20 08:26:28,512 - INFO - Created Project:ctest-TestBasicPolicy-80855412, ID : ca467f92-c0bc-414a-8c62-51cba3e466b4
2024-08-20 08:26:30,008 - INFO - ================================================================================
2024-08-20 08:26:30,008 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-08-20 08:26:30,008 - 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-20 08:26:30,269 - DEBUG - Nothing to compare xmpp stats {'10.0.0.17': {'10.20.0.21': '0'}} with
2024-08-20 08:26:30,269 - INFO - Initial checks done. Running the testcase now
2024-08-20 08:26:30,270 - INFO -
2024-08-20 08:26:30,874 - DEBUG - Response for create_network : {'network': {'id': 'cc1395e8-84a1-44b9-8f45-6bc53486bfdc', 'name': 'ctest-vn-96600254', 'tenant_id': 'ca467f92c0bc414a8c6251cba3e466b4', 'project_id': 'ca467f92c0bc414a8c6251cba3e466b4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-80855412', 'ctest-vn-96600254'], 'port_security_enabled': True, 'description': ''}}
2024-08-20 08:26:31,041 - DEBUG - Response for create_subnet : {'subnet': {'id': '55c28d58-5519-4e38-8608-9077835ecd1d', 'name': '', 'tenant_id': 'ca467f92c0bc414a8c6251cba3e466b4', 'network_id': 'cc1395e8-84a1-44b9-8f45-6bc53486bfdc', 'ip_version': 4, 'cidr': '180.224.130.192/26', 'allocation_pools': [{'start': '180.224.130.194', 'end': '180.224.130.254'}], 'gateway_ip': '180.224.130.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '180.224.130.194', 'tags': [], 'project_id': 'ca467f92c0bc414a8c6251cba3e466b4'}}
2024-08-20 08:26:31,061 - INFO - Created VN ctest-vn-96600254
2024-08-20 08:26:31,115 - DEBUG - VN ctest-vn-96600254 UUID is cc1395e8-84a1-44b9-8f45-6bc53486bfdc
2024-08-20 08:26:31,413 - DEBUG - Response for create_network : {'network': {'id': 'b462079d-8822-4564-895c-75a8be88298e', 'name': 'ctest-vn-57334648', 'tenant_id': 'ca467f92c0bc414a8c6251cba3e466b4', 'project_id': 'ca467f92c0bc414a8c6251cba3e466b4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-80855412', 'ctest-vn-57334648'], 'port_security_enabled': True, 'description': ''}}
2024-08-20 08:26:31,622 - DEBUG - Response for create_subnet : {'subnet': {'id': '060f69f3-f243-43f9-94ae-3245a9c686e5', 'name': '', 'tenant_id': 'ca467f92c0bc414a8c6251cba3e466b4', 'network_id': 'b462079d-8822-4564-895c-75a8be88298e', 'ip_version': 4, 'cidr': '187.172.81.192/26', 'allocation_pools': [{'start': '187.172.81.194', 'end': '187.172.81.254'}], 'gateway_ip': '187.172.81.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '187.172.81.194', 'tags': [], 'project_id': 'ca467f92c0bc414a8c6251cba3e466b4'}}
2024-08-20 08:26:31,642 - INFO - Created VN ctest-vn-57334648
2024-08-20 08:26:31,691 - DEBUG - VN ctest-vn-57334648 UUID is b462079d-8822-4564-895c-75a8be88298e
2024-08-20 08:26:31,807 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-80855412:ctest-vn-96600254, 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-80855412:ctest-vn-57334648, 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-20 08:26:32,116 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'cc1395e8-84a1-44b9-8f45-6bc53486bfdc', 'name': 'ctest-vn-96600254', 'tenant_id': 'ca467f92c0bc414a8c6251cba3e466b4', 'project_id': 'ca467f92c0bc414a8c6251cba3e466b4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['55c28d58-5519-4e38-8608-9077835ecd1d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-80855412', 'ctest-vn-96600254'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-80855412', 'ctest-policy-allow-all-44521312']], 'subnet_ipam': [{'subnet_cidr': '180.224.130.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-08-20 08:26:32,358 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b462079d-8822-4564-895c-75a8be88298e', 'name': 'ctest-vn-57334648', 'tenant_id': 'ca467f92c0bc414a8c6251cba3e466b4', 'project_id': 'ca467f92c0bc414a8c6251cba3e466b4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['060f69f3-f243-43f9-94ae-3245a9c686e5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-80855412', 'ctest-vn-57334648'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-80855412', 'ctest-policy-allow-all-44521312']], 'subnet_ipam': [{'subnet_cidr': '187.172.81.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-08-20 08:26:32,515 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2024-08-20 08:26:32,805 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2024-08-20 08:26:32,835 - DEBUG - Requesting: http://10.0.0.17:8082/domain/f2a13a47-84e5-4c01-9ba1-33fc0ee27d16
2024-08-20 08:26:32,849 - DEBUG - Requesting: http://10.0.0.17:8082/project/ca467f92-c0bc-414a-8c62-51cba3e466b4
2024-08-20 08:26:32,920 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/cc1395e8-84a1-44b9-8f45-6bc53486bfdc
2024-08-20 08:26:32,930 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/cc1395e8-84a1-44b9-8f45-6bc53486bfdc
2024-08-20 08:26:32,938 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/53c39b98-28e0-4f2c-a668-638ad2a451da
2024-08-20 08:26:32,945 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/53c39b98-28e0-4f2c-a668-638ad2a451da
2024-08-20 08:26:32,952 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/d81d1e00-cefd-44c0-a7f7-e166b8a7e820
2024-08-20 08:26:32,959 - DEBUG - Route Targets: ['target:64512:8000005']
2024-08-20 08:26:32,959 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/cc1395e8-84a1-44b9-8f45-6bc53486bfdc
2024-08-20 08:26:32,967 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/53c39b98-28e0-4f2c-a668-638ad2a451da
2024-08-20 08:26:32,981 - INFO - Verified VN network id 9 for VN cc1395e8-84a1-44b9-8f45-6bc53486bfdc
2024-08-20 08:26:32,981 - INFO - Verifications in API Server for VN ctest-vn-96600254 passed
2024-08-20 08:26:32,981 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/cc1395e8-84a1-44b9-8f45-6bc53486bfdc
2024-08-20 08:26:32,989 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/53c39b98-28e0-4f2c-a668-638ad2a451da
2024-08-20 08:26:32,996 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/53c39b98-28e0-4f2c-a668-638ad2a451da
2024-08-20 08:26:33,003 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/d81d1e00-cefd-44c0-a7f7-e166b8a7e820
2024-08-20 08:26:33,015 - DEBUG - Control-node 10.0.0.17 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-80855412:ctest-vn-96600254', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-80855412', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14705262034184914105', 'uuid-lslong': '10323776215550705628'}, 'enable': 'true', 'created': '2024-08-20T08:26:30', 'last-modified': '2024-08-20T08:26:32', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.931301'}
2024-08-20 08:26:33,022 - DEBUG - Route Targets: ['target:64512:8000005']
2024-08-20 08:26:33,022 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-96600254 passed
2024-08-20 08:26:33,022 - DEBUG - ====Verifying policy data for ctest-vn-96600254 in API_Server ======
2024-08-20 08:26:33,022 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2024-08-20 08:26:33,029 - DEBUG - Requesting: http://10.0.0.17:8082/domain/f2a13a47-84e5-4c01-9ba1-33fc0ee27d16
2024-08-20 08:26:33,041 - DEBUG - Requesting: http://10.0.0.17:8082/project/ca467f92-c0bc-414a-8c62-51cba3e466b4
2024-08-20 08:26:33,115 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/cc1395e8-84a1-44b9-8f45-6bc53486bfdc
2024-08-20 08:26:33,123 - DEBUG - ==>Verifying data for policy with id: 9187666c-d6d0-4566-8566-b71858bb7cd2, fqn: ['default-domain', 'ctest-TestBasicPolicy-80855412', 'ctest-policy-allow-all-44521312']
2024-08-20 08:26:33,123 - INFO - VN ctest-vn-96600254 Policy verification: verify_vn_policy_in_api_server, status: True
2024-08-20 08:26:33,124 - DEBUG - Verifying the vn in opserver
2024-08-20 08:26:33,124 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-80855412:ctest-vn-96600254 virtual network link through opserver 10.0.0.17
2024-08-20 08:26:33,124 - DEBUG - Requesting: http://10.0.0.17:8081/analytics/uves/virtual-networks
2024-08-20 08:26:33,414 - DEBUG - Requesting: http://10.0.0.17:8081/analytics/uves/virtual-networks
2024-08-20 08:26:33,474 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-80855412:ctest-vn-96600254', 'href': 'http://10.0.0.17:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-80855412:ctest-vn-96600254?flat'}
2024-08-20 08:26:33,474 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-80855412:ctest-vn-96600254 is found in opserver
2024-08-20 08:26:33,485 - DEBUG - Do not have enough data to verify VN in agent
2024-08-20 08:26:33,490 - DEBUG - VRF ids for VN ctest-vn-96600254: {}
2024-08-20 08:26:33,490 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2024-08-20 08:26:33,497 - DEBUG - Requesting: http://10.0.0.17:8082/domain/f2a13a47-84e5-4c01-9ba1-33fc0ee27d16
2024-08-20 08:26:33,509 - DEBUG - Requesting: http://10.0.0.17:8082/project/ca467f92-c0bc-414a-8c62-51cba3e466b4
2024-08-20 08:26:33,577 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/b462079d-8822-4564-895c-75a8be88298e
2024-08-20 08:26:33,588 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/b462079d-8822-4564-895c-75a8be88298e
2024-08-20 08:26:33,596 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/535e33c1-f30e-42bc-9cac-a5ca4b87ccd7
2024-08-20 08:26:33,604 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/535e33c1-f30e-42bc-9cac-a5ca4b87ccd7
2024-08-20 08:26:33,611 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/81892981-a183-4071-a003-f8bd137b25b0
2024-08-20 08:26:33,617 - DEBUG - Route Targets: ['target:64512:8000006']
2024-08-20 08:26:33,617 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/b462079d-8822-4564-895c-75a8be88298e
2024-08-20 08:26:33,625 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/535e33c1-f30e-42bc-9cac-a5ca4b87ccd7
2024-08-20 08:26:33,638 - INFO - Verified VN network id 10 for VN b462079d-8822-4564-895c-75a8be88298e
2024-08-20 08:26:33,638 - INFO - Verifications in API Server for VN ctest-vn-57334648 passed
2024-08-20 08:26:33,638 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/b462079d-8822-4564-895c-75a8be88298e
2024-08-20 08:26:33,645 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/535e33c1-f30e-42bc-9cac-a5ca4b87ccd7
2024-08-20 08:26:33,653 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/535e33c1-f30e-42bc-9cac-a5ca4b87ccd7
2024-08-20 08:26:33,660 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/81892981-a183-4071-a003-f8bd137b25b0
2024-08-20 08:26:33,673 - DEBUG - Control-node 10.0.0.17 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-80855412:ctest-vn-57334648', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-80855412', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12997959847719880036', 'uuid-lslong': '9897915448665057678'}, 'enable': 'true', 'created': '2024-08-20T08:26:31', 'last-modified': '2024-08-20T08:26:32', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.343532'}
2024-08-20 08:26:33,680 - DEBUG - Route Targets: ['target:64512:8000006']
2024-08-20 08:26:33,680 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-57334648 passed
2024-08-20 08:26:33,680 - DEBUG - ====Verifying policy data for ctest-vn-57334648 in API_Server ======
2024-08-20 08:26:33,680 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2024-08-20 08:26:33,686 - DEBUG - Requesting: http://10.0.0.17:8082/domain/f2a13a47-84e5-4c01-9ba1-33fc0ee27d16
2024-08-20 08:26:33,698 - DEBUG - Requesting: http://10.0.0.17:8082/project/ca467f92-c0bc-414a-8c62-51cba3e466b4
2024-08-20 08:26:33,766 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/b462079d-8822-4564-895c-75a8be88298e
2024-08-20 08:26:33,774 - DEBUG - ==>Verifying data for policy with id: 9187666c-d6d0-4566-8566-b71858bb7cd2, fqn: ['default-domain', 'ctest-TestBasicPolicy-80855412', 'ctest-policy-allow-all-44521312']
2024-08-20 08:26:33,774 - INFO - VN ctest-vn-57334648 Policy verification: verify_vn_policy_in_api_server, status: True
2024-08-20 08:26:33,774 - DEBUG - Verifying the vn in opserver
2024-08-20 08:26:33,775 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-80855412:ctest-vn-57334648 virtual network link through opserver 10.0.0.17
2024-08-20 08:26:33,775 - DEBUG - Requesting: http://10.0.0.17:8081/analytics/uves/virtual-networks
2024-08-20 08:26:33,787 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-80855412:ctest-vn-57334648', 'href': 'http://10.0.0.17:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-80855412:ctest-vn-57334648?flat'}
2024-08-20 08:26:33,787 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-80855412:ctest-vn-57334648 is found in opserver
2024-08-20 08:26:33,798 - DEBUG - Do not have enough data to verify VN in agent
2024-08-20 08:26:33,804 - DEBUG - VRF ids for VN ctest-vn-57334648: {}
2024-08-20 08:26:33,860 - DEBUG - Services list from nova: [