2025-10-02 02:20:23,728 - INFO - Domain Default found not creating 2025-10-02 02:20:23,945 - INFO - Project ctest-TestBasicPolicy-38348234 not found, creating it 2025-10-02 02:20:24,532 - INFO - Created Project:ctest-TestBasicPolicy-38348234, ID : 4c51bb5c-ad66-4362-9def-d4fd4f343570 2025-10-02 02:20:26,066 - INFO - ================================================================================ 2025-10-02 02:20:26,066 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-10-02 02:20:26,066 - 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-02 02:20:27,318 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.25': '0', '10.20.0.14': '0'}, '10.0.0.130': {'10.20.0.254': '0', '10.20.0.14': '0'}} with 2025-10-02 02:20:27,318 - INFO - Initial checks done. Running the testcase now 2025-10-02 02:20:27,318 - INFO - 2025-10-02 02:20:27,977 - DEBUG - Response for create_network : {'network': {'id': 'd886a78c-c714-43ee-b747-8fcc879a262d', 'name': 'ctest-vn-25655310', 'tenant_id': '4c51bb5cad6643629defd4fd4f343570', 'project_id': '4c51bb5cad6643629defd4fd4f343570', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38348234', 'ctest-vn-25655310'], 'port_security_enabled': True, 'description': ''}} 2025-10-02 02:20:28,241 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f2af01d8-b808-45cb-a534-1dce44c4c6cb', 'name': '', 'tenant_id': '4c51bb5cad6643629defd4fd4f343570', 'network_id': 'd886a78c-c714-43ee-b747-8fcc879a262d', 'ip_version': 4, 'cidr': '105.63.58.64/26', 'allocation_pools': [{'start': '105.63.58.66', 'end': '105.63.58.126'}], 'gateway_ip': '105.63.58.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '105.63.58.66', 'tags': [], 'project_id': '4c51bb5cad6643629defd4fd4f343570'}} 2025-10-02 02:20:28,263 - INFO - Created VN ctest-vn-25655310 2025-10-02 02:20:28,275 - DEBUG - VN ctest-vn-25655310 UUID is d886a78c-c714-43ee-b747-8fcc879a262d 2025-10-02 02:20:28,624 - DEBUG - Response for create_network : {'network': {'id': 'b176c03b-c2c7-4066-a90c-10f45c0701b1', 'name': 'ctest-vn-81382720', 'tenant_id': '4c51bb5cad6643629defd4fd4f343570', 'project_id': '4c51bb5cad6643629defd4fd4f343570', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38348234', 'ctest-vn-81382720'], 'port_security_enabled': True, 'description': ''}} 2025-10-02 02:20:28,863 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ffe2ce25-6cc5-4b5d-b54a-184d13bdbca4', 'name': '', 'tenant_id': '4c51bb5cad6643629defd4fd4f343570', 'network_id': 'b176c03b-c2c7-4066-a90c-10f45c0701b1', 'ip_version': 4, 'cidr': '180.127.104.64/26', 'allocation_pools': [{'start': '180.127.104.66', 'end': '180.127.104.126'}], 'gateway_ip': '180.127.104.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '180.127.104.66', 'tags': [], 'project_id': '4c51bb5cad6643629defd4fd4f343570'}} 2025-10-02 02:20:28,886 - INFO - Created VN ctest-vn-81382720 2025-10-02 02:20:28,899 - DEBUG - VN ctest-vn-81382720 UUID is b176c03b-c2c7-4066-a90c-10f45c0701b1 2025-10-02 02:20:29,018 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-38348234:ctest-vn-25655310, 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-38348234:ctest-vn-81382720, 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-02 02:20:29,318 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd886a78c-c714-43ee-b747-8fcc879a262d', 'name': 'ctest-vn-25655310', 'tenant_id': '4c51bb5cad6643629defd4fd4f343570', 'project_id': '4c51bb5cad6643629defd4fd4f343570', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f2af01d8-b808-45cb-a534-1dce44c4c6cb'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38348234', 'ctest-vn-25655310'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-38348234', 'ctest-policy-allow-all-04648578']], 'subnet_ipam': [{'subnet_cidr': '105.63.58.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-02 02:20:29,532 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b176c03b-c2c7-4066-a90c-10f45c0701b1', 'name': 'ctest-vn-81382720', 'tenant_id': '4c51bb5cad6643629defd4fd4f343570', 'project_id': '4c51bb5cad6643629defd4fd4f343570', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ffe2ce25-6cc5-4b5d-b54a-184d13bdbca4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38348234', 'ctest-vn-81382720'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-38348234', 'ctest-policy-allow-all-04648578']], 'subnet_ipam': [{'subnet_cidr': '180.127.104.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-02 02:20:29,638 - DEBUG - Requesting: http://10.0.0.56:8082/domains 2025-10-02 02:20:29,952 - DEBUG - Requesting: http://10.0.0.56:8082/domains 2025-10-02 02:20:29,979 - DEBUG - Requesting: http://10.0.0.56:8082/domain/b0543e69-2184-4be1-8e23-ac5840233bc6 2025-10-02 02:20:29,993 - DEBUG - Requesting: http://10.0.0.56:8082/project/4c51bb5c-ad66-4362-9def-d4fd4f343570 2025-10-02 02:20:30,077 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/d886a78c-c714-43ee-b747-8fcc879a262d 2025-10-02 02:20:30,092 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/d886a78c-c714-43ee-b747-8fcc879a262d 2025-10-02 02:20:30,104 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/19c216d2-1a0b-441c-92a6-dce5d6b6cea6 2025-10-02 02:20:30,110 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/19c216d2-1a0b-441c-92a6-dce5d6b6cea6 2025-10-02 02:20:30,116 - DEBUG - Requesting: http://10.0.0.56:8082/route-target/e2df69d4-e94a-4ba5-80d7-21e2551ece81 2025-10-02 02:20:30,122 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-02 02:20:30,122 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/d886a78c-c714-43ee-b747-8fcc879a262d 2025-10-02 02:20:30,130 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/19c216d2-1a0b-441c-92a6-dce5d6b6cea6 2025-10-02 02:20:30,143 - INFO - Verified VN network id 13 for VN d886a78c-c714-43ee-b747-8fcc879a262d 2025-10-02 02:20:30,143 - INFO - Verifications in API Server for VN ctest-vn-25655310 passed 2025-10-02 02:20:30,143 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/d886a78c-c714-43ee-b747-8fcc879a262d 2025-10-02 02:20:30,151 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/19c216d2-1a0b-441c-92a6-dce5d6b6cea6 2025-10-02 02:20:30,158 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/19c216d2-1a0b-441c-92a6-dce5d6b6cea6 2025-10-02 02:20:30,164 - DEBUG - Requesting: http://10.0.0.56:8082/route-target/e2df69d4-e94a-4ba5-80d7-21e2551ece81 2025-10-02 02:20:30,174 - DEBUG - Control-node 10.0.0.56 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-38348234:ctest-vn-25655310', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-38348234', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15602342182148916206', 'uuid-lslong': '13206682540898395693'}, 'enable': 'true', 'created': '2025-10-02T02:20:27', 'last-modified': '2025-10-02T02:20:29', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.887235'} 2025-10-02 02:20:30,179 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-02 02:20:30,183 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-38348234:ctest-vn-25655310', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-38348234', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15602342182148916206', 'uuid-lslong': '13206682540898395693'}, 'enable': 'true', 'created': '2025-10-02T02:20:27', 'last-modified': '2025-10-02T02:20:29', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.900347'} 2025-10-02 02:20:30,188 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-02 02:20:30,193 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-38348234:ctest-vn-25655310', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-38348234', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15602342182148916206', 'uuid-lslong': '13206682540898395693'}, 'enable': 'true', 'created': '2025-10-02T02:20:27', 'last-modified': '2025-10-02T02:20:29', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.908407'} 2025-10-02 02:20:30,199 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-02 02:20:30,199 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-25655310 passed 2025-10-02 02:20:30,199 - DEBUG - ====Verifying policy data for ctest-vn-25655310 in API_Server ====== 2025-10-02 02:20:30,199 - DEBUG - Requesting: http://10.0.0.56:8082/domains 2025-10-02 02:20:30,205 - DEBUG - Requesting: http://10.0.0.56:8082/domain/b0543e69-2184-4be1-8e23-ac5840233bc6 2025-10-02 02:20:30,215 - DEBUG - Requesting: http://10.0.0.56:8082/project/4c51bb5c-ad66-4362-9def-d4fd4f343570 2025-10-02 02:20:30,309 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/d886a78c-c714-43ee-b747-8fcc879a262d 2025-10-02 02:20:30,322 - DEBUG - ==>Verifying data for policy with id: f3bd7d03-c184-485f-b3fd-6234c926a032, fqn: ['default-domain', 'ctest-TestBasicPolicy-38348234', 'ctest-policy-allow-all-04648578'] 2025-10-02 02:20:30,323 - INFO - VN ctest-vn-25655310 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-02 02:20:30,323 - DEBUG - Verifying the vn in opserver 2025-10-02 02:20:30,323 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-38348234:ctest-vn-25655310 virtual network link through opserver 10.0.0.56 2025-10-02 02:20:30,323 - DEBUG - Requesting: http://10.0.0.56:8081/analytics/uves/virtual-networks 2025-10-02 02:20:30,614 - DEBUG - Requesting: http://10.0.0.56:8081/analytics/uves/virtual-networks 2025-10-02 02:20:30,672 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-38348234:ctest-vn-25655310', 'href': 'http://10.0.0.56:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-38348234:ctest-vn-25655310?flat'} 2025-10-02 02:20:30,672 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-38348234:ctest-vn-25655310 virtual network link through opserver 10.0.0.38 2025-10-02 02:20:30,672 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-10-02 02:20:30,972 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-10-02 02:20:31,030 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-38348234:ctest-vn-25655310', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-38348234:ctest-vn-25655310?flat'} 2025-10-02 02:20:31,030 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-38348234:ctest-vn-25655310 virtual network link through opserver 10.0.0.49 2025-10-02 02:20:31,030 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks 2025-10-02 02:20:31,324 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks 2025-10-02 02:20:31,372 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-38348234:ctest-vn-25655310', 'href': 'http://10.0.0.49:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-38348234:ctest-vn-25655310?flat'} 2025-10-02 02:20:31,372 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-38348234:ctest-vn-25655310 is found in opserver 2025-10-02 02:20:31,390 - DEBUG - Do not have enough data to verify VN in agent 2025-10-02 02:20:31,397 - DEBUG - VRF ids for VN ctest-vn-25655310: {} 2025-10-02 02:20:31,397 - DEBUG - Requesting: http://10.0.0.56:8082/domains 2025-10-02 02:20:31,403 - DEBUG - Requesting: http://10.0.0.56:8082/domain/b0543e69-2184-4be1-8e23-ac5840233bc6 2025-10-02 02:20:31,412 - DEBUG - Requesting: http://10.0.0.56:8082/project/4c51bb5c-ad66-4362-9def-d4fd4f343570 2025-10-02 02:20:31,509 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/b176c03b-c2c7-4066-a90c-10f45c0701b1 2025-10-02 02:20:31,521 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/b176c03b-c2c7-4066-a90c-10f45c0701b1 2025-10-02 02:20:31,531 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/a50083ea-bd50-4fbc-93d8-19b599e7c13a 2025-10-02 02:20:31,537 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/a50083ea-bd50-4fbc-93d8-19b599e7c13a 2025-10-02 02:20:31,543 - DEBUG - Requesting: http://10.0.0.56:8082/route-target/928c577e-25c2-45f4-8543-36387b670d5a 2025-10-02 02:20:31,548 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-10-02 02:20:31,548 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/b176c03b-c2c7-4066-a90c-10f45c0701b1 2025-10-02 02:20:31,556 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/a50083ea-bd50-4fbc-93d8-19b599e7c13a 2025-10-02 02:20:31,570 - INFO - Verified VN network id 14 for VN b176c03b-c2c7-4066-a90c-10f45c0701b1 2025-10-02 02:20:31,570 - INFO - Verifications in API Server for VN ctest-vn-81382720 passed 2025-10-02 02:20:31,570 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/b176c03b-c2c7-4066-a90c-10f45c0701b1 2025-10-02 02:20:31,578 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/a50083ea-bd50-4fbc-93d8-19b599e7c13a 2025-10-02 02:20:31,584 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/a50083ea-bd50-4fbc-93d8-19b599e7c13a 2025-10-02 02:20:31,592 - DEBUG - Requesting: http://10.0.0.56:8082/route-target/928c577e-25c2-45f4-8543-36387b670d5a 2025-10-02 02:20:31,604 - DEBUG - Control-node 10.0.0.56 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-38348234:ctest-vn-81382720', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-38348234', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12787619554868543590', 'uuid-lslong': '12181129733832376753'}, 'enable': 'true', 'created': '2025-10-02T02:20:28', 'last-modified': '2025-10-02T02:20:29', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.113804'} 2025-10-02 02:20:31,608 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-10-02 02:20:31,613 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-38348234:ctest-vn-81382720', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-38348234', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12787619554868543590', 'uuid-lslong': '12181129733832376753'}, 'enable': 'true', 'created': '2025-10-02T02:20:28', 'last-modified': '2025-10-02T02:20:29', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.131197'} 2025-10-02 02:20:31,619 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-10-02 02:20:31,624 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-38348234:ctest-vn-81382720', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-38348234', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12787619554868543590', 'uuid-lslong': '12181129733832376753'}, 'enable': 'true', 'created': '2025-10-02T02:20:28', 'last-modified': '2025-10-02T02:20:29', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.141649'} 2025-10-02 02:20:31,630 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-10-02 02:20:31,630 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-81382720 passed 2025-10-02 02:20:31,630 - DEBUG - ====Verifying policy data for ctest-vn-81382720 in API_Server ====== 2025-10-02 02:20:31,630 - DEBUG - Requesting: http://10.0.0.56:8082/domains 2025-10-02 02:20:31,636 - DEBUG - Requesting: http://10.0.0.56:8082/domain/b0543e69-2184-4be1-8e23-ac5840233bc6 2025-10-02 02:20:31,647 - DEBUG - Requesting: http://10.0.0.56:8082/project/4c51bb5c-ad66-4362-9def-d4fd4f343570 2025-10-02 02:20:31,739 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/b176c03b-c2c7-4066-a90c-10f45c0701b1 2025-10-02 02:20:31,751 - DEBUG - ==>Verifying data for policy with id: f3bd7d03-c184-485f-b3fd-6234c926a032, fqn: ['default-domain', 'ctest-TestBasicPolicy-38348234', 'ctest-policy-allow-all-04648578'] 2025-10-02 02:20:31,751 - INFO - VN ctest-vn-81382720 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-02 02:20:31,751 - DEBUG - Verifying the vn in opserver 2025-10-02 02:20:31,751 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-38348234:ctest-vn-81382720 virtual network link through opserver 10.0.0.56 2025-10-02 02:20:31,751 - DEBUG - Requesting: http://10.0.0.56:8081/analytics/uves/virtual-networks 2025-10-02 02:20:31,806 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-38348234:ctest-vn-81382720', 'href': 'http://10.0.0.56:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-38348234:ctest-vn-81382720?flat'} 2025-10-02 02:20:31,806 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-38348234:ctest-vn-81382720 virtual network link through opserver 10.0.0.38 2025-10-02 02:20:31,806 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-10-02 02:20:31,855 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-38348234:ctest-vn-81382720', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-38348234:ctest-vn-81382720?flat'} 2025-10-02 02:20:31,855 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-38348234:ctest-vn-81382720 virtual network link through opserver 10.0.0.49 2025-10-02 02:20:31,855 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks 2025-10-02 02:20:31,903 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-38348234:ctest-vn-81382720', 'href': 'http://10.0.0.49:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-38348234:ctest-vn-81382720?flat'} 2025-10-02 02:20:31,903 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-38348234:ctest-vn-81382720 is found in opserver 2025-10-02 02:20:31,921 - DEBUG - Do not have enough data to verify VN in agent 2025-10-02 02:20:31,930 - DEBUG - VRF ids for VN ctest-vn-81382720: {} 2025-10-02 02:20:31,988 - DEBUG - Services list from nova: [, , , ] 2025-10-02 02:20:33,027 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-4210-2), Zone: (nova:an-jenkins-deploy-platform-ansible-os-4210-2) 2025-10-02 02:20:34,425 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-4210-1), Zone: (nova:an-jenkins-deploy-platform-ansible-os-4210-1) 2025-10-02 02:20:34,425 - INFO - Waiting for VM ctest-TestBasicPolicy-38348234-93249193 to be up.. 2025-10-02 02:20:34,523 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-10-02 02:20:39,603 - DEBUG - VM is in ACTIVE state now 2025-10-02 02:20:39,603 - INFO - VM name : ctest-TestBasicPolicy-38348234-93249193 2025-10-02 02:20:39,679 - DEBUG - VM ctest-TestBasicPolicy-38348234-93249193 ID is 039bf063-633a-49b4-b457-9fe494fc1f5b 2025-10-02 02:20:39,704 - DEBUG - VM ctest-TestBasicPolicy-38348234-93249193 launched on Node an-jenkins-deploy-platform-ansible-os-4210-2 2025-10-02 02:20:39,784 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-machine/039bf063-633a-49b4-b457-9fe494fc1f5b 2025-10-02 02:20:40,087 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-machine/039bf063-633a-49b4-b457-9fe494fc1f5b 2025-10-02 02:20:40,120 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-machine-interface/9016eda5-e089-452a-b6fc-b728293f687b 2025-10-02 02:20:43,305 - 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 1027ms') 2025-10-02 02:20:43,305 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-38348234-93249193 failed! 2025-10-02 02:20:43,318 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-38348234:ctest-vn-25655310 is 105.63.58.65 and allocation pool is NOT set 2025-10-02 02:20:47,396 - 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 1017ms') 2025-10-02 02:20:47,396 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-38348234-93249193 failed! 2025-10-02 02:20:47,409 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-38348234:ctest-vn-25655310 is 105.63.58.65 and allocation pool is NOT set 2025-10-02 02:20:51,489 - 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-02 02:20:51,489 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-38348234-93249193 failed! 2025-10-02 02:20:51,503 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-38348234:ctest-vn-25655310 is 105.63.58.65 and allocation pool is NOT set 2025-10-02 02:20:55,594 - 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 1029ms') 2025-10-02 02:20:55,594 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-38348234-93249193 failed! 2025-10-02 02:20:55,608 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-38348234:ctest-vn-25655310 is 105.63.58.65 and allocation pool is NOT set 2025-10-02 02:20:59,686 - 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 1018ms') 2025-10-02 02:20:59,686 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-38348234-93249193 failed! 2025-10-02 02:20:59,700 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-38348234:ctest-vn-25655310 is 105.63.58.65 and allocation pool is NOT set 2025-10-02 02:21:03,782 - 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 1018ms') 2025-10-02 02:21:03,782 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-38348234-93249193 failed! 2025-10-02 02:21:03,795 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-38348234:ctest-vn-25655310 is 105.63.58.65 and allocation pool is NOT set 2025-10-02 02:21:07,879 - 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 1018ms') 2025-10-02 02:21:07,879 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-38348234-93249193 failed! 2025-10-02 02:21:07,904 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-38348234:ctest-vn-25655310 is 105.63.58.65 and allocation pool is NOT set 2025-10-02 02:21:11,973 - 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 1007ms') 2025-10-02 02:21:11,973 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-38348234-93249193 failed! 2025-10-02 02:21:11,988 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-38348234:ctest-vn-25655310 is 105.63.58.65 and allocation pool is NOT set 2025-10-02 02:21:14,053 - 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=6.45 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=3.11 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 = 3.110/4.778/6.447/1.668 ms') 2025-10-02 02:21:14,053 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-38348234-93249193 passed 2025-10-02 02:21:14,124 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-02 02:21:14,124 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-38348234-93249193, IP 105.63.58.67, Port 22 2025-10-02 02:21:14,189 - 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-02 02:21:14,273 - DEBUG - VM ctest-TestBasicPolicy-38348234-93249193 is NOT ready for SSH connections, VM status: ACTIVE 2025-10-02 02:21:19,274 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-02 02:21:19,274 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-38348234-93249193, IP 105.63.58.67, Port 22 2025-10-02 02:21:19,341 - 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-02 02:21:19,430 - DEBUG - VM ctest-TestBasicPolicy-38348234-93249193 is NOT ready for SSH connections, VM status: ACTIVE 2025-10-02 02:21:24,431 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-02 02:21:24,431 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-38348234-93249193, IP 105.63.58.67, Port 22 2025-10-02 02:21:24,497 - 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-02 02:21:24,572 - DEBUG - VM ctest-TestBasicPolicy-38348234-93249193 is NOT ready for SSH connections, VM status: ACTIVE 2025-10-02 02:21:29,573 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-02 02:21:29,573 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-38348234-93249193, IP 105.63.58.67, Port 22 2025-10-02 02:21:29,641 - 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-02 02:21:29,722 - DEBUG - VM ctest-TestBasicPolicy-38348234-93249193 is NOT ready for SSH connections, VM status: ACTIVE 2025-10-02 02:21:34,723 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-02 02:21:34,723 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-38348234-93249193, IP 105.63.58.67, Port 22 2025-10-02 02:21:34,892 - DEBUG - VM ctest-TestBasicPolicy-38348234-93249193 is ready for SSH connections 2025-10-02 02:21:34,892 - INFO - Waiting for VM ctest-TestBasicPolicy-38348234-81109181 to be up.. 2025-10-02 02:21:34,983 - DEBUG - VM is in ACTIVE state now 2025-10-02 02:21:34,983 - INFO - VM name : ctest-TestBasicPolicy-38348234-81109181 2025-10-02 02:21:35,076 - DEBUG - VM ctest-TestBasicPolicy-38348234-81109181 ID is 4354023c-7ef0-4634-870a-39c0dde17d11 2025-10-02 02:21:35,076 - DEBUG - VM ctest-TestBasicPolicy-38348234-81109181 launched on Node an-jenkins-deploy-platform-ansible-os-4210-1 2025-10-02 02:21:35,153 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-machine/4354023c-7ef0-4634-870a-39c0dde17d11 2025-10-02 02:21:35,163 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-machine-interface/5d5211b8-9210-454f-bc2c-67477a6c6281 2025-10-02 02:21:36,309 - 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.23 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.340 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.340/1.285/2.231/0.945 ms') 2025-10-02 02:21:36,309 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-38348234-81109181 passed 2025-10-02 02:21:36,379 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-02 02:21:36,379 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-38348234-81109181, IP 180.127.104.67, Port 22 2025-10-02 02:21:36,540 - DEBUG - VM ctest-TestBasicPolicy-38348234-81109181 is ready for SSH connections 2025-10-02 02:21:36,540 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-02 02:21:36,540 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 180.127.104.67, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.130, gateway password: c0ntrail123 2025-10-02 02:21:36,540 - DEBUG - ping -s 56 -c 3 -W 1 180.127.104.67 2025-10-02 02:21:57,507 - DEBUG - PING 180.127.104.67 (180.127.104.67) 56(84) bytes of data. 64 bytes from 180.127.104.67: icmp_req=1 ttl=63 time=9.26 ms 64 bytes from 180.127.104.67: icmp_req=2 ttl=63 time=1.08 ms 64 bytes from 180.127.104.67: icmp_req=3 ttl=63 time=1.03 ms --- 180.127.104.67 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2004ms rtt min/avg/max/mdev = 1.034/3.795/9.268/3.870 ms 2025-10-02 02:21:57,507 - INFO - Ping to IP 180.127.104.67 from VM ctest-TestBasicPolicy-38348234-93249193 passed 2025-10-02 02:21:57,710 - DEBUG - Policy Update Response {"network-policy": {"uuid": "f3bd7d03-c184-485f-b3fd-6234c926a032", "href": "http://10.0.0.49:8082/network-policy/f3bd7d03-c184-485f-b3fd-6234c926a032"}} 2025-10-02 02:21:57,710 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-02 02:21:57,710 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 180.127.104.67, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.130, gateway password: c0ntrail123 2025-10-02 02:21:57,711 - DEBUG - ping -s 56 -c 3 -W 1 180.127.104.67 2025-10-02 02:22:01,217 - DEBUG - PING 180.127.104.67 (180.127.104.67) 56(84) bytes of data. 64 bytes from 180.127.104.67: icmp_req=1 ttl=63 time=3.57 ms --- 180.127.104.67 ping statistics --- 3 packets transmitted, 1 received, 66% packet loss, time 2002ms rtt min/avg/max/mdev = 3.578/3.578/3.578/0.000 ms 2025-10-02 02:22:01,217 - WARNING - Ping to IP 180.127.104.67 from VM ctest-TestBasicPolicy-38348234-93249193 failed 2025-10-02 02:22:01,217 - INFO - Deleting VM ctest-TestBasicPolicy-38348234-81109181 2025-10-02 02:22:01,285 - INFO - Deleting VM ctest-TestBasicPolicy-38348234-93249193 2025-10-02 02:22:01,746 - INFO - Deleted policy ctest-policy-allow-all-04648578 2025-10-02 02:22:01,747 - INFO - Deleting VN ctest-vn-81382720 2025-10-02 02:22:01,808 - DEBUG - VN b176c03b-c2c7-4066-a90c-10f45c0701b1 still in use: Unable to complete operation on network b176c03b-c2c7-4066-a90c-10f45c0701b1. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-bdfd944f-4b60-4d23-b333-aed92e58f245'] 2025-10-02 02:22:01,808 - WARNING - Deleting VN ctest-vn-81382720 failed..Will retry 2025-10-02 02:22:03,985 - DEBUG - Response for deleting network () 2025-10-02 02:22:03,985 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/a50083ea-bd50-4fbc-93d8-19b599e7c13a 2025-10-02 02:22:03,997 - DEBUG - Response Code: 404 2025-10-02 02:22:03,997 - DEBUG - Requesting: http://10.0.0.56:8082/domains 2025-10-02 02:22:04,002 - DEBUG - Requesting: http://10.0.0.56:8082/domain/b0543e69-2184-4be1-8e23-ac5840233bc6 2025-10-02 02:22:04,012 - DEBUG - Requesting: http://10.0.0.56:8082/project/4c51bb5c-ad66-4362-9def-d4fd4f343570 2025-10-02 02:22:04,094 - INFO - Validated that VN ctest-vn-81382720 is not found in API Server 2025-10-02 02:22:04,103 - DEBUG - VN ctest-vn-81382720 is not present in Agent 10.0.0.33 2025-10-02 02:22:04,113 - DEBUG - VN ctest-vn-81382720 is not present in Agent 10.0.0.130 2025-10-02 02:22:04,113 - INFO - Validated that VN ctest-vn-81382720 is not in any agent 2025-10-02 02:22:04,140 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-81382720 info 2025-10-02 02:22:04,141 - INFO - Deleting VN ctest-vn-25655310 2025-10-02 02:22:04,294 - DEBUG - Response for deleting network () 2025-10-02 02:22:04,294 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/19c216d2-1a0b-441c-92a6-dce5d6b6cea6 2025-10-02 02:22:04,299 - DEBUG - Response Code: 404 2025-10-02 02:22:04,299 - DEBUG - Requesting: http://10.0.0.56:8082/domains 2025-10-02 02:22:04,311 - DEBUG - Requesting: http://10.0.0.56:8082/domain/b0543e69-2184-4be1-8e23-ac5840233bc6 2025-10-02 02:22:04,325 - DEBUG - Requesting: http://10.0.0.56:8082/project/4c51bb5c-ad66-4362-9def-d4fd4f343570 2025-10-02 02:22:04,418 - INFO - Validated that VN ctest-vn-25655310 is not found in API Server 2025-10-02 02:22:04,436 - DEBUG - VN ctest-vn-25655310 is not present in Agent 10.0.0.33 2025-10-02 02:22:04,451 - DEBUG - VN ctest-vn-25655310 is not present in Agent 10.0.0.130 2025-10-02 02:22:04,451 - INFO - Validated that VN ctest-vn-25655310 is not in any agent 2025-10-02 02:22:04,483 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-25655310 info 2025-10-02 02:22:05,746 - DEBUG - No XMPP flaps were noticed during the test
2025-10-02 02:22:05,746 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:01:39]
2025-10-02 02:22:05,746 - INFO - -------------------------------------------------------------------------------- 2025-10-02 02:22:06,428 - INFO - Deleted project: ctest-TestBasicPolicy-38348234, ID : 4c51bb5c-ad66-4362-9def-d4fd4f343570