2025-10-29 20:01:00,674 - INFO - Domain Default found not creating 2025-10-29 20:01:00,829 - INFO - Project ctest-TestBasicPolicy-35578088 not found, creating it 2025-10-29 20:01:01,461 - INFO - Created Project:ctest-TestBasicPolicy-35578088, ID : d0c74aa5-583e-49a4-933a-8d9bbe407ce9 2025-10-29 20:01:03,143 - INFO - ================================================================================ 2025-10-29 20:01:03,143 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-10-29 20:01:03,143 - 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 2025-10-29 20:01:04,503 - DEBUG - Nothing to compare xmpp stats {'10.0.0.241': {'10.20.0.254': '0', '10.20.0.18': '0'}, '10.0.0.242': {'10.20.0.18': '0', '10.20.0.14': '0'}} with 2025-10-29 20:01:04,503 - INFO - Initial checks done. Running the testcase now 2025-10-29 20:01:04,503 - INFO - 2025-10-29 20:01:05,180 - DEBUG - Response for create_network : {'network': {'id': '8d5a32b9-3c71-4011-a57c-0f8e8fbaad54', 'name': 'ctest-vn-29308642', 'tenant_id': 'd0c74aa5583e49a4933a8d9bbe407ce9', 'project_id': 'd0c74aa5583e49a4933a8d9bbe407ce9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-35578088', 'ctest-vn-29308642'], 'port_security_enabled': True, 'description': ''}} 2025-10-29 20:01:05,415 - DEBUG - Response for create_subnet : {'subnet': {'id': '9d1b33d0-26dc-4560-9120-2acd7b1648cc', 'name': '', 'tenant_id': 'd0c74aa5583e49a4933a8d9bbe407ce9', 'network_id': '8d5a32b9-3c71-4011-a57c-0f8e8fbaad54', 'ip_version': 4, 'cidr': '31.46.77.0/26', 'allocation_pools': [{'start': '31.46.77.2', 'end': '31.46.77.62'}], 'gateway_ip': '31.46.77.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '31.46.77.2', 'tags': [], 'project_id': 'd0c74aa5583e49a4933a8d9bbe407ce9'}} 2025-10-29 20:01:05,439 - INFO - Created VN ctest-vn-29308642 2025-10-29 20:01:05,451 - DEBUG - VN ctest-vn-29308642 UUID is 8d5a32b9-3c71-4011-a57c-0f8e8fbaad54 2025-10-29 20:01:05,809 - DEBUG - Response for create_network : {'network': {'id': 'd5f32d07-9d40-499a-bece-c1967c8e7ea6', 'name': 'ctest-vn-06605483', 'tenant_id': 'd0c74aa5583e49a4933a8d9bbe407ce9', 'project_id': 'd0c74aa5583e49a4933a8d9bbe407ce9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-35578088', 'ctest-vn-06605483'], 'port_security_enabled': True, 'description': ''}} 2025-10-29 20:01:06,057 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cd65dfc3-75fa-4e3c-ba1f-fa2d0ca6dd50', 'name': '', 'tenant_id': 'd0c74aa5583e49a4933a8d9bbe407ce9', 'network_id': 'd5f32d07-9d40-499a-bece-c1967c8e7ea6', 'ip_version': 4, 'cidr': '193.159.134.64/26', 'allocation_pools': [{'start': '193.159.134.66', 'end': '193.159.134.126'}], 'gateway_ip': '193.159.134.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '193.159.134.66', 'tags': [], 'project_id': 'd0c74aa5583e49a4933a8d9bbe407ce9'}} 2025-10-29 20:01:06,083 - INFO - Created VN ctest-vn-06605483 2025-10-29 20:01:06,096 - DEBUG - VN ctest-vn-06605483 UUID is d5f32d07-9d40-499a-bece-c1967c8e7ea6 2025-10-29 20:01:06,176 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-35578088:ctest-vn-29308642, 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-35578088:ctest-vn-06605483, 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] 2025-10-29 20:01:06,477 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8d5a32b9-3c71-4011-a57c-0f8e8fbaad54', 'name': 'ctest-vn-29308642', 'tenant_id': 'd0c74aa5583e49a4933a8d9bbe407ce9', 'project_id': 'd0c74aa5583e49a4933a8d9bbe407ce9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9d1b33d0-26dc-4560-9120-2acd7b1648cc'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-35578088', 'ctest-vn-29308642'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-35578088', 'ctest-policy-allow-all-70384408']], 'subnet_ipam': [{'subnet_cidr': '31.46.77.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-29 20:01:06,663 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd5f32d07-9d40-499a-bece-c1967c8e7ea6', 'name': 'ctest-vn-06605483', 'tenant_id': 'd0c74aa5583e49a4933a8d9bbe407ce9', 'project_id': 'd0c74aa5583e49a4933a8d9bbe407ce9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['cd65dfc3-75fa-4e3c-ba1f-fa2d0ca6dd50'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-35578088', 'ctest-vn-06605483'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-35578088', 'ctest-policy-allow-all-70384408']], 'subnet_ipam': [{'subnet_cidr': '193.159.134.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-29 20:01:06,781 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-29 20:01:07,107 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-29 20:01:07,136 - DEBUG - Requesting: http://10.0.0.254:8082/domain/a090225f-9b9e-4366-926c-6397a8c195bb 2025-10-29 20:01:07,151 - DEBUG - Requesting: http://10.0.0.254:8082/project/d0c74aa5-583e-49a4-933a-8d9bbe407ce9 2025-10-29 20:01:07,245 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/8d5a32b9-3c71-4011-a57c-0f8e8fbaad54 2025-10-29 20:01:07,257 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/8d5a32b9-3c71-4011-a57c-0f8e8fbaad54 2025-10-29 20:01:07,268 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/4bf1847c-3b34-43b1-86ce-12ff79965c97 2025-10-29 20:01:07,275 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/4bf1847c-3b34-43b1-86ce-12ff79965c97 2025-10-29 20:01:07,282 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/526e9db4-aad0-4bc5-bc15-6f8b6d51d8ae 2025-10-29 20:01:07,289 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-29 20:01:07,289 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/8d5a32b9-3c71-4011-a57c-0f8e8fbaad54 2025-10-29 20:01:07,298 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/4bf1847c-3b34-43b1-86ce-12ff79965c97 2025-10-29 20:01:07,315 - INFO - Verified VN network id 15 for VN 8d5a32b9-3c71-4011-a57c-0f8e8fbaad54 2025-10-29 20:01:07,315 - INFO - Verifications in API Server for VN ctest-vn-29308642 passed 2025-10-29 20:01:07,315 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/8d5a32b9-3c71-4011-a57c-0f8e8fbaad54 2025-10-29 20:01:07,326 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/4bf1847c-3b34-43b1-86ce-12ff79965c97 2025-10-29 20:01:07,334 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/4bf1847c-3b34-43b1-86ce-12ff79965c97 2025-10-29 20:01:07,341 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/526e9db4-aad0-4bc5-bc15-6f8b6d51d8ae 2025-10-29 20:01:07,355 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-35578088:ctest-vn-29308642', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-35578088', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10185509278416191505', 'uuid-lslong': '11924423018341379412'}, 'enable': 'true', 'created': '2025-10-29T20:01:05', 'last-modified': '2025-10-29T20:01:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.918807'} 2025-10-29 20:01:07,361 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-29 20:01:07,366 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-35578088:ctest-vn-29308642', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-35578088', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10185509278416191505', 'uuid-lslong': '11924423018341379412'}, 'enable': 'true', 'created': '2025-10-29T20:01:05', 'last-modified': '2025-10-29T20:01:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.933296'} 2025-10-29 20:01:07,372 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-29 20:01:07,382 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-35578088:ctest-vn-29308642', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-35578088', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10185509278416191505', 'uuid-lslong': '11924423018341379412'}, 'enable': 'true', 'created': '2025-10-29T20:01:05', 'last-modified': '2025-10-29T20:01:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.943599'} 2025-10-29 20:01:07,388 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-29 20:01:07,388 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-29308642 passed 2025-10-29 20:01:07,389 - DEBUG - ====Verifying policy data for ctest-vn-29308642 in API_Server ====== 2025-10-29 20:01:07,389 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-29 20:01:07,395 - DEBUG - Requesting: http://10.0.0.254:8082/domain/a090225f-9b9e-4366-926c-6397a8c195bb 2025-10-29 20:01:07,407 - DEBUG - Requesting: http://10.0.0.254:8082/project/d0c74aa5-583e-49a4-933a-8d9bbe407ce9 2025-10-29 20:01:07,500 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/8d5a32b9-3c71-4011-a57c-0f8e8fbaad54 2025-10-29 20:01:07,513 - DEBUG - ==>Verifying data for policy with id: 5dce481d-efda-4b79-b6a5-82b369d25c01, fqn: ['default-domain', 'ctest-TestBasicPolicy-35578088', 'ctest-policy-allow-all-70384408'] 2025-10-29 20:01:07,513 - INFO - VN ctest-vn-29308642 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-29 20:01:07,513 - DEBUG - Verifying the vn in opserver 2025-10-29 20:01:07,513 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-35578088:ctest-vn-29308642 virtual network link through opserver 10.0.0.254 2025-10-29 20:01:07,514 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-10-29 20:01:07,806 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-10-29 20:01:07,864 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-35578088:ctest-vn-29308642', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-35578088:ctest-vn-29308642?flat'} 2025-10-29 20:01:07,864 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-35578088:ctest-vn-29308642 virtual network link through opserver 10.0.0.38 2025-10-29 20:01:07,865 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-10-29 20:01:08,157 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-10-29 20:01:08,220 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-35578088:ctest-vn-29308642', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-35578088:ctest-vn-29308642?flat'} 2025-10-29 20:01:08,220 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-35578088:ctest-vn-29308642 virtual network link through opserver 10.0.0.33 2025-10-29 20:01:08,220 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-10-29 20:01:08,518 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-10-29 20:01:08,581 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-35578088:ctest-vn-29308642', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-35578088:ctest-vn-29308642?flat'} 2025-10-29 20:01:08,581 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-35578088:ctest-vn-29308642 is found in opserver 2025-10-29 20:01:08,608 - DEBUG - Do not have enough data to verify VN in agent 2025-10-29 20:01:08,619 - DEBUG - VRF ids for VN ctest-vn-29308642: {} 2025-10-29 20:01:08,619 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-29 20:01:08,631 - DEBUG - Requesting: http://10.0.0.254:8082/domain/a090225f-9b9e-4366-926c-6397a8c195bb 2025-10-29 20:01:08,644 - DEBUG - Requesting: http://10.0.0.254:8082/project/d0c74aa5-583e-49a4-933a-8d9bbe407ce9 2025-10-29 20:01:08,732 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/d5f32d07-9d40-499a-bece-c1967c8e7ea6 2025-10-29 20:01:08,744 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/d5f32d07-9d40-499a-bece-c1967c8e7ea6 2025-10-29 20:01:08,753 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/619fa335-73ae-4799-a695-1d41ec1336b2 2025-10-29 20:01:08,762 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/619fa335-73ae-4799-a695-1d41ec1336b2 2025-10-29 20:01:08,769 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/cc6ce936-5da9-40ca-b09a-39f85c9f089f 2025-10-29 20:01:08,776 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-10-29 20:01:08,776 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/d5f32d07-9d40-499a-bece-c1967c8e7ea6 2025-10-29 20:01:08,786 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/619fa335-73ae-4799-a695-1d41ec1336b2 2025-10-29 20:01:08,804 - INFO - Verified VN network id 16 for VN d5f32d07-9d40-499a-bece-c1967c8e7ea6 2025-10-29 20:01:08,805 - INFO - Verifications in API Server for VN ctest-vn-06605483 passed 2025-10-29 20:01:08,805 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/d5f32d07-9d40-499a-bece-c1967c8e7ea6 2025-10-29 20:01:08,816 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/619fa335-73ae-4799-a695-1d41ec1336b2 2025-10-29 20:01:08,824 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/619fa335-73ae-4799-a695-1d41ec1336b2 2025-10-29 20:01:08,832 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/cc6ce936-5da9-40ca-b09a-39f85c9f089f 2025-10-29 20:01:08,845 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-35578088:ctest-vn-06605483', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-35578088', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15416715460145596826', 'uuid-lslong': '13749139564487671462'}, 'enable': 'true', 'created': '2025-10-29T20:01:05', 'last-modified': '2025-10-29T20:01:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.211788'} 2025-10-29 20:01:08,850 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-10-29 20:01:08,855 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-35578088:ctest-vn-06605483', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-35578088', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15416715460145596826', 'uuid-lslong': '13749139564487671462'}, 'enable': 'true', 'created': '2025-10-29T20:01:05', 'last-modified': '2025-10-29T20:01:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.223643'} 2025-10-29 20:01:08,862 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-10-29 20:01:08,867 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-35578088:ctest-vn-06605483', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-35578088', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15416715460145596826', 'uuid-lslong': '13749139564487671462'}, 'enable': 'true', 'created': '2025-10-29T20:01:05', 'last-modified': '2025-10-29T20:01:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.237743'} 2025-10-29 20:01:08,872 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-10-29 20:01:08,873 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-06605483 passed 2025-10-29 20:01:08,873 - DEBUG - ====Verifying policy data for ctest-vn-06605483 in API_Server ====== 2025-10-29 20:01:08,873 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-29 20:01:08,880 - DEBUG - Requesting: http://10.0.0.254:8082/domain/a090225f-9b9e-4366-926c-6397a8c195bb 2025-10-29 20:01:08,891 - DEBUG - Requesting: http://10.0.0.254:8082/project/d0c74aa5-583e-49a4-933a-8d9bbe407ce9 2025-10-29 20:01:08,981 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/d5f32d07-9d40-499a-bece-c1967c8e7ea6 2025-10-29 20:01:08,993 - DEBUG - ==>Verifying data for policy with id: 5dce481d-efda-4b79-b6a5-82b369d25c01, fqn: ['default-domain', 'ctest-TestBasicPolicy-35578088', 'ctest-policy-allow-all-70384408'] 2025-10-29 20:01:08,993 - INFO - VN ctest-vn-06605483 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-29 20:01:08,993 - DEBUG - Verifying the vn in opserver 2025-10-29 20:01:08,993 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-35578088:ctest-vn-06605483 virtual network link through opserver 10.0.0.254 2025-10-29 20:01:08,993 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-10-29 20:01:09,051 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-35578088:ctest-vn-06605483', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-35578088:ctest-vn-06605483?flat'} 2025-10-29 20:01:09,051 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-35578088:ctest-vn-06605483 virtual network link through opserver 10.0.0.38 2025-10-29 20:01:09,051 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-10-29 20:01:09,120 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-35578088:ctest-vn-06605483', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-35578088:ctest-vn-06605483?flat'} 2025-10-29 20:01:09,120 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-35578088:ctest-vn-06605483 virtual network link through opserver 10.0.0.33 2025-10-29 20:01:09,120 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-10-29 20:01:09,183 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-35578088:ctest-vn-06605483', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-35578088:ctest-vn-06605483?flat'} 2025-10-29 20:01:09,183 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-35578088:ctest-vn-06605483 is found in opserver 2025-10-29 20:01:09,217 - DEBUG - Do not have enough data to verify VN in agent 2025-10-29 20:01:09,229 - DEBUG - VRF ids for VN ctest-vn-06605483: {} 2025-10-29 20:01:09,298 - DEBUG - Services list from nova: [, , , ] 2025-10-29 20:01:10,411 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-4527-2), Zone: (nova:an-jenkins-deploy-platform-ansible-os-4527-2) 2025-10-29 20:01:11,877 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-4527-1), Zone: (nova:an-jenkins-deploy-platform-ansible-os-4527-1) 2025-10-29 20:01:11,877 - INFO - Waiting for VM ctest-TestBasicPolicy-35578088-41753273 to be up.. 2025-10-29 20:01:11,973 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-10-29 20:01:17,065 - DEBUG - VM is in ACTIVE state now 2025-10-29 20:01:17,065 - INFO - VM name : ctest-TestBasicPolicy-35578088-41753273 2025-10-29 20:01:17,148 - DEBUG - VM ctest-TestBasicPolicy-35578088-41753273 ID is c23b6a25-b995-4e85-92d8-4f08ec485933 2025-10-29 20:01:17,179 - DEBUG - VM ctest-TestBasicPolicy-35578088-41753273 launched on Node an-jenkins-deploy-platform-ansible-os-4527-2 2025-10-29 20:01:17,271 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine/c23b6a25-b995-4e85-92d8-4f08ec485933 2025-10-29 20:01:17,569 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine/c23b6a25-b995-4e85-92d8-4f08ec485933 2025-10-29 20:01:17,603 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine-interface/69cc3e6c-5c62-47bb-8a56-cb6f3e2588b4 2025-10-29 20:01:20,764 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1002ms') 2025-10-29 20:01:20,764 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-35578088-41753273 failed! 2025-10-29 20:01:20,778 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-35578088:ctest-vn-29308642 is 31.46.77.1 and allocation pool is NOT set 2025-10-29 20:01:24,862 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1023ms') 2025-10-29 20:01:24,863 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-35578088-41753273 failed! 2025-10-29 20:01:24,877 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-35578088:ctest-vn-29308642 is 31.46.77.1 and allocation pool is NOT set 2025-10-29 20:01:28,960 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1019ms') 2025-10-29 20:01:28,960 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-35578088-41753273 failed! 2025-10-29 20:01:28,974 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-35578088:ctest-vn-29308642 is 31.46.77.1 and allocation pool is NOT set 2025-10-29 20:01:33,061 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1021ms') 2025-10-29 20:01:33,061 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-35578088-41753273 failed! 2025-10-29 20:01:33,078 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-35578088:ctest-vn-29308642 is 31.46.77.1 and allocation pool is NOT set 2025-10-29 20:01:37,152 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1010ms') 2025-10-29 20:01:37,152 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-35578088-41753273 failed! 2025-10-29 20:01:37,165 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-35578088:ctest-vn-29308642 is 31.46.77.1 and allocation pool is NOT set 2025-10-29 20:01:41,243 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1019ms') 2025-10-29 20:01:41,243 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-35578088-41753273 failed! 2025-10-29 20:01:41,259 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-35578088:ctest-vn-29308642 is 31.46.77.1 and allocation pool is NOT set 2025-10-29 20:01:45,342 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1021ms') 2025-10-29 20:01:45,342 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-35578088-41753273 failed! 2025-10-29 20:01:45,355 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-35578088:ctest-vn-29308642 is 31.46.77.1 and allocation pool is NOT set 2025-10-29 20:01:49,439 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1019ms') 2025-10-29 20:01:49,439 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-35578088-41753273 failed! 2025-10-29 20:01:49,453 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-35578088:ctest-vn-29308642 is 31.46.77.1 and allocation pool is NOT set 2025-10-29 20:01:51,514 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n64 bytes from 169.254.0.3: icmp_seq=1 ttl=63 time=5.57 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.670 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1001ms\r\nrtt min/avg/max/mdev = 0.670/3.120/5.570/2.450 ms') 2025-10-29 20:01:51,514 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-35578088-41753273 passed 2025-10-29 20:01:51,583 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-29 20:01:51,583 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-35578088-41753273, IP 31.46.77.3, Port 22 2025-10-29 20:01:51,649 - DEBUG - Error on ssh to ubuntu@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2025-10-29 20:01:51,742 - DEBUG - VM ctest-TestBasicPolicy-35578088-41753273 is NOT ready for SSH connections, VM status: ACTIVE 2025-10-29 20:01:56,743 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-29 20:01:56,743 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-35578088-41753273, IP 31.46.77.3, Port 22 2025-10-29 20:01:56,798 - DEBUG - Error on ssh to ubuntu@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2025-10-29 20:01:56,881 - DEBUG - VM ctest-TestBasicPolicy-35578088-41753273 is NOT ready for SSH connections, VM status: ACTIVE 2025-10-29 20:02:01,882 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-29 20:02:01,882 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-35578088-41753273, IP 31.46.77.3, Port 22 2025-10-29 20:02:01,948 - DEBUG - Error on ssh to ubuntu@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2025-10-29 20:02:02,031 - DEBUG - VM ctest-TestBasicPolicy-35578088-41753273 is NOT ready for SSH connections, VM status: ACTIVE 2025-10-29 20:02:07,031 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-29 20:02:07,032 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-35578088-41753273, IP 31.46.77.3, Port 22 2025-10-29 20:02:07,101 - DEBUG - Error on ssh to ubuntu@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2025-10-29 20:02:07,180 - DEBUG - VM ctest-TestBasicPolicy-35578088-41753273 is NOT ready for SSH connections, VM status: ACTIVE 2025-10-29 20:02:12,180 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-29 20:02:12,180 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-35578088-41753273, IP 31.46.77.3, Port 22 2025-10-29 20:02:12,349 - DEBUG - VM ctest-TestBasicPolicy-35578088-41753273 is ready for SSH connections 2025-10-29 20:02:12,349 - INFO - Waiting for VM ctest-TestBasicPolicy-35578088-08094919 to be up.. 2025-10-29 20:02:12,454 - DEBUG - VM is in ACTIVE state now 2025-10-29 20:02:12,454 - INFO - VM name : ctest-TestBasicPolicy-35578088-08094919 2025-10-29 20:02:12,553 - DEBUG - VM ctest-TestBasicPolicy-35578088-08094919 ID is 1a126169-4978-4ce4-81d7-6b767c889598 2025-10-29 20:02:12,553 - DEBUG - VM ctest-TestBasicPolicy-35578088-08094919 launched on Node an-jenkins-deploy-platform-ansible-os-4527-1 2025-10-29 20:02:12,655 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine/1a126169-4978-4ce4-81d7-6b767c889598 2025-10-29 20:02:12,666 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine-interface/9a206fe8-f87d-4c16-89f8-33fe13a7f8a0 2025-10-29 20:02:13,853 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n64 bytes from 169.254.0.3: icmp_seq=1 ttl=63 time=2.42 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=6.05 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 2.416/4.235/6.054/1.819 ms') 2025-10-29 20:02:13,853 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-35578088-08094919 passed 2025-10-29 20:02:13,930 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-29 20:02:13,930 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-35578088-08094919, IP 193.159.134.67, Port 22 2025-10-29 20:02:13,989 - DEBUG - Error on ssh to ubuntu@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2025-10-29 20:02:14,074 - DEBUG - VM ctest-TestBasicPolicy-35578088-08094919 is NOT ready for SSH connections, VM status: ACTIVE 2025-10-29 20:02:19,075 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-29 20:02:19,075 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-35578088-08094919, IP 193.159.134.67, Port 22 2025-10-29 20:02:19,285 - DEBUG - VM ctest-TestBasicPolicy-35578088-08094919 is ready for SSH connections 2025-10-29 20:02:19,285 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-29 20:02:19,286 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 193.159.134.67, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.242, gateway password: c0ntrail123 2025-10-29 20:02:19,286 - DEBUG - ping -s 56 -c 3 -W 1 193.159.134.67 2025-10-29 20:03:06,173 - DEBUG - PING 193.159.134.67 (193.159.134.67) 56(84) bytes of data. 64 bytes from 193.159.134.67: icmp_req=1 ttl=63 time=16.2 ms 64 bytes from 193.159.134.67: icmp_req=2 ttl=63 time=2.25 ms 64 bytes from 193.159.134.67: icmp_req=3 ttl=63 time=1.34 ms --- 193.159.134.67 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2003ms rtt min/avg/max/mdev = 1.348/6.623/16.263/6.826 ms 2025-10-29 20:03:06,174 - INFO - Ping to IP 193.159.134.67 from VM ctest-TestBasicPolicy-35578088-41753273 passed 2025-10-29 20:03:06,366 - DEBUG - Policy Update Response {"network-policy": {"uuid": "5dce481d-efda-4b79-b6a5-82b369d25c01", "href": "http://10.0.0.33:8082/network-policy/5dce481d-efda-4b79-b6a5-82b369d25c01"}} 2025-10-29 20:03:06,367 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-29 20:03:06,367 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 193.159.134.67, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.242, gateway password: c0ntrail123 2025-10-29 20:03:06,367 - DEBUG - ping -s 56 -c 3 -W 1 193.159.134.67 2025-10-29 20:03:09,825 - DEBUG - PING 193.159.134.67 (193.159.134.67) 56(84) bytes of data. 64 bytes from 193.159.134.67: icmp_req=1 ttl=63 time=4.35 ms --- 193.159.134.67 ping statistics --- 3 packets transmitted, 1 received, 66% packet loss, time 2002ms rtt min/avg/max/mdev = 4.358/4.358/4.358/0.000 ms 2025-10-29 20:03:09,825 - WARNING - Ping to IP 193.159.134.67 from VM ctest-TestBasicPolicy-35578088-41753273 failed 2025-10-29 20:03:09,826 - INFO - Deleting VM ctest-TestBasicPolicy-35578088-08094919 2025-10-29 20:03:09,900 - INFO - Deleting VM ctest-TestBasicPolicy-35578088-41753273 2025-10-29 20:03:10,351 - INFO - Deleted policy ctest-policy-allow-all-70384408 2025-10-29 20:03:10,352 - INFO - Deleting VN ctest-vn-06605483 2025-10-29 20:03:10,407 - DEBUG - VN d5f32d07-9d40-499a-bece-c1967c8e7ea6 still in use: Unable to complete operation on network d5f32d07-9d40-499a-bece-c1967c8e7ea6. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-8a356f08-a71f-4eb6-9c83-3e8d1e002005'] 2025-10-29 20:03:10,407 - WARNING - Deleting VN ctest-vn-06605483 failed..Will retry 2025-10-29 20:03:12,563 - DEBUG - Response for deleting network () 2025-10-29 20:03:12,563 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/619fa335-73ae-4799-a695-1d41ec1336b2 2025-10-29 20:03:12,575 - DEBUG - Response Code: 404 2025-10-29 20:03:12,575 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-29 20:03:12,585 - DEBUG - Requesting: http://10.0.0.254:8082/domain/a090225f-9b9e-4366-926c-6397a8c195bb 2025-10-29 20:03:12,604 - DEBUG - Requesting: http://10.0.0.254:8082/project/d0c74aa5-583e-49a4-933a-8d9bbe407ce9 2025-10-29 20:03:12,708 - INFO - Validated that VN ctest-vn-06605483 is not found in API Server 2025-10-29 20:03:12,719 - DEBUG - VN ctest-vn-06605483 is not present in Agent 10.0.0.241 2025-10-29 20:03:12,729 - DEBUG - VN ctest-vn-06605483 is not present in Agent 10.0.0.242 2025-10-29 20:03:12,729 - INFO - Validated that VN ctest-vn-06605483 is not in any agent 2025-10-29 20:03:12,762 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-06605483 info 2025-10-29 20:03:12,762 - INFO - Deleting VN ctest-vn-29308642 2025-10-29 20:03:12,921 - DEBUG - Response for deleting network () 2025-10-29 20:03:12,921 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/4bf1847c-3b34-43b1-86ce-12ff79965c97 2025-10-29 20:03:12,926 - DEBUG - Response Code: 404 2025-10-29 20:03:12,927 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-29 20:03:12,947 - DEBUG - Requesting: http://10.0.0.254:8082/domain/a090225f-9b9e-4366-926c-6397a8c195bb 2025-10-29 20:03:13,004 - DEBUG - Requesting: http://10.0.0.254:8082/project/d0c74aa5-583e-49a4-933a-8d9bbe407ce9 2025-10-29 20:03:13,089 - INFO - Validated that VN ctest-vn-29308642 is not found in API Server 2025-10-29 20:03:13,106 - DEBUG - VN ctest-vn-29308642 is not present in Agent 10.0.0.241 2025-10-29 20:03:13,116 - DEBUG - VN ctest-vn-29308642 is not present in Agent 10.0.0.242 2025-10-29 20:03:13,116 - INFO - Validated that VN ctest-vn-29308642 is not in any agent 2025-10-29 20:03:13,147 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-29308642 info 2025-10-29 20:03:14,463 - DEBUG - No XMPP flaps were noticed during the test
2025-10-29 20:03:14,464 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:02:11]
2025-10-29 20:03:14,464 - INFO - -------------------------------------------------------------------------------- 2025-10-29 20:03:15,230 - INFO - Deleted project: ctest-TestBasicPolicy-35578088, ID : d0c74aa5-583e-49a4-933a-8d9bbe407ce9