2025-10-09 02:34:17,412 - INFO - Domain Default found not creating 2025-10-09 02:34:17,562 - INFO - Project ctest-TestBasicPolicy-88013107 not found, creating it 2025-10-09 02:34:18,112 - INFO - Created Project:ctest-TestBasicPolicy-88013107, ID : 76c8e113-e36f-4e15-9047-b34e69ce3062 2025-10-09 02:34:19,556 - INFO - ================================================================================ 2025-10-09 02:34:19,556 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-10-09 02:34:19,556 - 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-09 02:34:20,842 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.25': '0', '10.20.0.14': '0'}, '10.0.0.27': {'10.20.0.25': '0', '10.20.0.14': '0'}} with 2025-10-09 02:34:20,842 - INFO - Initial checks done. Running the testcase now 2025-10-09 02:34:20,843 - INFO - 2025-10-09 02:34:21,533 - DEBUG - Response for create_network : {'network': {'id': '37b50848-1f48-4d4b-9000-41509daa3322', 'name': 'ctest-vn-42119215', 'tenant_id': '76c8e113e36f4e159047b34e69ce3062', 'project_id': '76c8e113e36f4e159047b34e69ce3062', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-88013107', 'ctest-vn-42119215'], 'port_security_enabled': True, 'description': ''}} 2025-10-09 02:34:21,817 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ae33918f-abc7-4039-ac8b-067c17e19a70', 'name': '', 'tenant_id': '76c8e113e36f4e159047b34e69ce3062', 'network_id': '37b50848-1f48-4d4b-9000-41509daa3322', 'ip_version': 4, 'cidr': '11.88.127.64/26', 'allocation_pools': [{'start': '11.88.127.66', 'end': '11.88.127.126'}], 'gateway_ip': '11.88.127.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '11.88.127.66', 'tags': [], 'project_id': '76c8e113e36f4e159047b34e69ce3062'}} 2025-10-09 02:34:21,844 - INFO - Created VN ctest-vn-42119215 2025-10-09 02:34:21,856 - DEBUG - VN ctest-vn-42119215 UUID is 37b50848-1f48-4d4b-9000-41509daa3322 2025-10-09 02:34:22,222 - DEBUG - Response for create_network : {'network': {'id': 'a8167ab6-c785-42b6-84b0-bc2f613d43e5', 'name': 'ctest-vn-23746378', 'tenant_id': '76c8e113e36f4e159047b34e69ce3062', 'project_id': '76c8e113e36f4e159047b34e69ce3062', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-88013107', 'ctest-vn-23746378'], 'port_security_enabled': True, 'description': ''}} 2025-10-09 02:34:22,482 - DEBUG - Response for create_subnet : {'subnet': {'id': '0ade66a8-097b-4f2a-b1ca-ebc3514397ad', 'name': '', 'tenant_id': '76c8e113e36f4e159047b34e69ce3062', 'network_id': 'a8167ab6-c785-42b6-84b0-bc2f613d43e5', 'ip_version': 4, 'cidr': '195.73.199.64/26', 'allocation_pools': [{'start': '195.73.199.66', 'end': '195.73.199.126'}], 'gateway_ip': '195.73.199.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '195.73.199.66', 'tags': [], 'project_id': '76c8e113e36f4e159047b34e69ce3062'}} 2025-10-09 02:34:22,504 - INFO - Created VN ctest-vn-23746378 2025-10-09 02:34:22,517 - DEBUG - VN ctest-vn-23746378 UUID is a8167ab6-c785-42b6-84b0-bc2f613d43e5 2025-10-09 02:34:22,592 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-88013107:ctest-vn-42119215, 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-88013107:ctest-vn-23746378, 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-09 02:34:22,920 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '37b50848-1f48-4d4b-9000-41509daa3322', 'name': 'ctest-vn-42119215', 'tenant_id': '76c8e113e36f4e159047b34e69ce3062', 'project_id': '76c8e113e36f4e159047b34e69ce3062', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ae33918f-abc7-4039-ac8b-067c17e19a70'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-88013107', 'ctest-vn-42119215'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-88013107', 'ctest-policy-allow-all-16064672']], 'subnet_ipam': [{'subnet_cidr': '11.88.127.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-09 02:34:23,133 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a8167ab6-c785-42b6-84b0-bc2f613d43e5', 'name': 'ctest-vn-23746378', 'tenant_id': '76c8e113e36f4e159047b34e69ce3062', 'project_id': '76c8e113e36f4e159047b34e69ce3062', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0ade66a8-097b-4f2a-b1ca-ebc3514397ad'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-88013107', 'ctest-vn-23746378'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-88013107', 'ctest-policy-allow-all-16064672']], 'subnet_ipam': [{'subnet_cidr': '195.73.199.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-09 02:34:23,256 - DEBUG - Requesting: http://10.0.0.56:8082/domains 2025-10-09 02:34:23,573 - DEBUG - Requesting: http://10.0.0.56:8082/domains 2025-10-09 02:34:23,602 - DEBUG - Requesting: http://10.0.0.56:8082/domain/7ed77c0b-e642-4c13-a404-7756503cf17d 2025-10-09 02:34:23,618 - DEBUG - Requesting: http://10.0.0.56:8082/project/76c8e113-e36f-4e15-9047-b34e69ce3062 2025-10-09 02:34:23,721 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/37b50848-1f48-4d4b-9000-41509daa3322 2025-10-09 02:34:23,735 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/37b50848-1f48-4d4b-9000-41509daa3322 2025-10-09 02:34:23,747 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/3a3808ee-082f-42d3-bf36-135c8f4089ad 2025-10-09 02:34:23,754 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/3a3808ee-082f-42d3-bf36-135c8f4089ad 2025-10-09 02:34:23,761 - DEBUG - Requesting: http://10.0.0.56:8082/route-target/9f948a33-03bf-46ec-ac24-b708f1701d60 2025-10-09 02:34:23,767 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-09 02:34:23,768 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/37b50848-1f48-4d4b-9000-41509daa3322 2025-10-09 02:34:23,778 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/3a3808ee-082f-42d3-bf36-135c8f4089ad 2025-10-09 02:34:23,794 - INFO - Verified VN network id 14 for VN 37b50848-1f48-4d4b-9000-41509daa3322 2025-10-09 02:34:23,794 - INFO - Verifications in API Server for VN ctest-vn-42119215 passed 2025-10-09 02:34:23,794 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/37b50848-1f48-4d4b-9000-41509daa3322 2025-10-09 02:34:23,803 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/3a3808ee-082f-42d3-bf36-135c8f4089ad 2025-10-09 02:34:23,810 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/3a3808ee-082f-42d3-bf36-135c8f4089ad 2025-10-09 02:34:23,817 - DEBUG - Requesting: http://10.0.0.56:8082/route-target/9f948a33-03bf-46ec-ac24-b708f1701d60 2025-10-09 02:34:23,829 - DEBUG - Control-node 10.0.0.56 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-88013107:ctest-vn-42119215', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-88013107', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4014123748726164811', 'uuid-lslong': '10376365355959989026'}, 'enable': 'true', 'created': '2025-10-09T02:34:21', 'last-modified': '2025-10-09T02:34:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.958380'} 2025-10-09 02:34:23,834 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-09 02:34:23,839 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-88013107:ctest-vn-42119215', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-88013107', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4014123748726164811', 'uuid-lslong': '10376365355959989026'}, 'enable': 'true', 'created': '2025-10-09T02:34:21', 'last-modified': '2025-10-09T02:34:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.967473'} 2025-10-09 02:34:23,845 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-09 02:34:23,850 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-88013107:ctest-vn-42119215', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-88013107', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4014123748726164811', 'uuid-lslong': '10376365355959989026'}, 'enable': 'true', 'created': '2025-10-09T02:34:21', 'last-modified': '2025-10-09T02:34:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.978023'} 2025-10-09 02:34:23,855 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-09 02:34:23,855 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-42119215 passed 2025-10-09 02:34:23,855 - DEBUG - ====Verifying policy data for ctest-vn-42119215 in API_Server ====== 2025-10-09 02:34:23,855 - DEBUG - Requesting: http://10.0.0.56:8082/domains 2025-10-09 02:34:23,861 - DEBUG - Requesting: http://10.0.0.56:8082/domain/7ed77c0b-e642-4c13-a404-7756503cf17d 2025-10-09 02:34:23,870 - DEBUG - Requesting: http://10.0.0.56:8082/project/76c8e113-e36f-4e15-9047-b34e69ce3062 2025-10-09 02:34:23,959 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/37b50848-1f48-4d4b-9000-41509daa3322 2025-10-09 02:34:23,968 - DEBUG - ==>Verifying data for policy with id: 4d25523c-3da2-4123-b0ba-4b443068d84d, fqn: ['default-domain', 'ctest-TestBasicPolicy-88013107', 'ctest-policy-allow-all-16064672'] 2025-10-09 02:34:23,968 - INFO - VN ctest-vn-42119215 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-09 02:34:23,968 - DEBUG - Verifying the vn in opserver 2025-10-09 02:34:23,968 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-88013107:ctest-vn-42119215 virtual network link through opserver 10.0.0.56 2025-10-09 02:34:23,968 - DEBUG - Requesting: http://10.0.0.56:8081/analytics/uves/virtual-networks 2025-10-09 02:34:24,268 - DEBUG - Requesting: http://10.0.0.56:8081/analytics/uves/virtual-networks 2025-10-09 02:34:24,327 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-88013107:ctest-vn-42119215', 'href': 'http://10.0.0.56:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-88013107:ctest-vn-42119215?flat'} 2025-10-09 02:34:24,327 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-88013107:ctest-vn-42119215 virtual network link through opserver 10.0.0.19 2025-10-09 02:34:24,327 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2025-10-09 02:34:24,627 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2025-10-09 02:34:24,681 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-88013107:ctest-vn-42119215', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-88013107:ctest-vn-42119215?flat'} 2025-10-09 02:34:24,681 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-88013107:ctest-vn-42119215 virtual network link through opserver 10.0.0.41 2025-10-09 02:34:24,681 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2025-10-09 02:34:24,977 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2025-10-09 02:34:25,035 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-88013107:ctest-vn-42119215', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-88013107:ctest-vn-42119215?flat'} 2025-10-09 02:34:25,035 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-88013107:ctest-vn-42119215 is found in opserver 2025-10-09 02:34:25,056 - DEBUG - Do not have enough data to verify VN in agent 2025-10-09 02:34:25,064 - DEBUG - VRF ids for VN ctest-vn-42119215: {} 2025-10-09 02:34:25,064 - DEBUG - Requesting: http://10.0.0.56:8082/domains 2025-10-09 02:34:25,071 - DEBUG - Requesting: http://10.0.0.56:8082/domain/7ed77c0b-e642-4c13-a404-7756503cf17d 2025-10-09 02:34:25,082 - DEBUG - Requesting: http://10.0.0.56:8082/project/76c8e113-e36f-4e15-9047-b34e69ce3062 2025-10-09 02:34:25,171 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/a8167ab6-c785-42b6-84b0-bc2f613d43e5 2025-10-09 02:34:25,182 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/a8167ab6-c785-42b6-84b0-bc2f613d43e5 2025-10-09 02:34:25,190 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/70e17e01-6e15-4438-8db4-70558d504f1e 2025-10-09 02:34:25,198 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/70e17e01-6e15-4438-8db4-70558d504f1e 2025-10-09 02:34:25,204 - DEBUG - Requesting: http://10.0.0.56:8082/route-target/3f1c131e-3631-4fbd-9616-aaa385955cfc 2025-10-09 02:34:25,210 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-10-09 02:34:25,210 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/a8167ab6-c785-42b6-84b0-bc2f613d43e5 2025-10-09 02:34:25,219 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/70e17e01-6e15-4438-8db4-70558d504f1e 2025-10-09 02:34:25,235 - INFO - Verified VN network id 15 for VN a8167ab6-c785-42b6-84b0-bc2f613d43e5 2025-10-09 02:34:25,235 - INFO - Verifications in API Server for VN ctest-vn-23746378 passed 2025-10-09 02:34:25,235 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/a8167ab6-c785-42b6-84b0-bc2f613d43e5 2025-10-09 02:34:25,244 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/70e17e01-6e15-4438-8db4-70558d504f1e 2025-10-09 02:34:25,251 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/70e17e01-6e15-4438-8db4-70558d504f1e 2025-10-09 02:34:25,259 - DEBUG - Requesting: http://10.0.0.56:8082/route-target/3f1c131e-3631-4fbd-9616-aaa385955cfc 2025-10-09 02:34:25,273 - DEBUG - Control-node 10.0.0.56 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-88013107:ctest-vn-23746378', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-88013107', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12112003173309563574', 'uuid-lslong': '9561348920588452837'}, 'enable': 'true', 'created': '2025-10-09T02:34:22', 'last-modified': '2025-10-09T02:34:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.165269'} 2025-10-09 02:34:25,278 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-10-09 02:34:25,283 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-88013107:ctest-vn-23746378', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-88013107', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12112003173309563574', 'uuid-lslong': '9561348920588452837'}, 'enable': 'true', 'created': '2025-10-09T02:34:22', 'last-modified': '2025-10-09T02:34:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.190898'} 2025-10-09 02:34:25,290 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-10-09 02:34:25,295 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-88013107:ctest-vn-23746378', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-88013107', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12112003173309563574', 'uuid-lslong': '9561348920588452837'}, 'enable': 'true', 'created': '2025-10-09T02:34:22', 'last-modified': '2025-10-09T02:34:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.202252'} 2025-10-09 02:34:25,300 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-10-09 02:34:25,300 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-23746378 passed 2025-10-09 02:34:25,300 - DEBUG - ====Verifying policy data for ctest-vn-23746378 in API_Server ====== 2025-10-09 02:34:25,300 - DEBUG - Requesting: http://10.0.0.56:8082/domains 2025-10-09 02:34:25,306 - DEBUG - Requesting: http://10.0.0.56:8082/domain/7ed77c0b-e642-4c13-a404-7756503cf17d 2025-10-09 02:34:25,317 - DEBUG - Requesting: http://10.0.0.56:8082/project/76c8e113-e36f-4e15-9047-b34e69ce3062 2025-10-09 02:34:25,412 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/a8167ab6-c785-42b6-84b0-bc2f613d43e5 2025-10-09 02:34:25,421 - DEBUG - ==>Verifying data for policy with id: 4d25523c-3da2-4123-b0ba-4b443068d84d, fqn: ['default-domain', 'ctest-TestBasicPolicy-88013107', 'ctest-policy-allow-all-16064672'] 2025-10-09 02:34:25,421 - INFO - VN ctest-vn-23746378 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-09 02:34:25,421 - DEBUG - Verifying the vn in opserver 2025-10-09 02:34:25,421 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-88013107:ctest-vn-23746378 virtual network link through opserver 10.0.0.56 2025-10-09 02:34:25,421 - DEBUG - Requesting: http://10.0.0.56:8081/analytics/uves/virtual-networks 2025-10-09 02:34:25,476 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-88013107:ctest-vn-23746378', 'href': 'http://10.0.0.56:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-88013107:ctest-vn-23746378?flat'} 2025-10-09 02:34:25,476 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-88013107:ctest-vn-23746378 virtual network link through opserver 10.0.0.19 2025-10-09 02:34:25,476 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2025-10-09 02:34:25,529 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-88013107:ctest-vn-23746378', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-88013107:ctest-vn-23746378?flat'} 2025-10-09 02:34:25,529 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-88013107:ctest-vn-23746378 virtual network link through opserver 10.0.0.41 2025-10-09 02:34:25,529 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2025-10-09 02:34:25,585 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-88013107:ctest-vn-23746378', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-88013107:ctest-vn-23746378?flat'} 2025-10-09 02:34:25,585 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-88013107:ctest-vn-23746378 is found in opserver 2025-10-09 02:34:25,606 - DEBUG - Do not have enough data to verify VN in agent 2025-10-09 02:34:25,616 - DEBUG - VRF ids for VN ctest-vn-23746378: {} 2025-10-09 02:34:25,672 - DEBUG - Services list from nova: [, , , ] 2025-10-09 02:34:26,775 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-4252-2), Zone: (nova:an-jenkins-deploy-platform-ansible-os-4252-2) 2025-10-09 02:34:28,148 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-4252-1), Zone: (nova:an-jenkins-deploy-platform-ansible-os-4252-1) 2025-10-09 02:34:28,148 - INFO - Waiting for VM ctest-TestBasicPolicy-88013107-72780762 to be up.. 2025-10-09 02:34:28,266 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-10-09 02:34:33,349 - DEBUG - VM is in ACTIVE state now 2025-10-09 02:34:33,349 - INFO - VM name : ctest-TestBasicPolicy-88013107-72780762 2025-10-09 02:34:33,444 - DEBUG - VM ctest-TestBasicPolicy-88013107-72780762 ID is cdc7f593-ff9d-44d6-85e7-7231b15a62bf 2025-10-09 02:34:33,477 - DEBUG - VM ctest-TestBasicPolicy-88013107-72780762 launched on Node an-jenkins-deploy-platform-ansible-os-4252-2 2025-10-09 02:34:33,577 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine/cdc7f593-ff9d-44d6-85e7-7231b15a62bf 2025-10-09 02:34:33,885 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine/cdc7f593-ff9d-44d6-85e7-7231b15a62bf 2025-10-09 02:34:33,920 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine-interface/693fb72d-495b-4dc4-8c24-a1a6c104eabc 2025-10-09 02:34:37,107 - 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-09 02:34:37,108 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-88013107-72780762 failed! 2025-10-09 02:34:37,123 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-88013107:ctest-vn-42119215 is 11.88.127.65 and allocation pool is NOT set 2025-10-09 02:34:41,204 - 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 1016ms') 2025-10-09 02:34:41,205 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-88013107-72780762 failed! 2025-10-09 02:34:41,224 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-88013107:ctest-vn-42119215 is 11.88.127.65 and allocation pool is NOT set 2025-10-09 02:34:45,303 - 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 1015ms') 2025-10-09 02:34:45,303 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-88013107-72780762 failed! 2025-10-09 02:34:45,320 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-88013107:ctest-vn-42119215 is 11.88.127.65 and allocation pool is NOT set 2025-10-09 02:34:49,403 - 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-09 02:34:49,404 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-88013107-72780762 failed! 2025-10-09 02:34:49,418 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-88013107:ctest-vn-42119215 is 11.88.127.65 and allocation pool is NOT set 2025-10-09 02:34:53,496 - 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 1011ms') 2025-10-09 02:34:53,497 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-88013107-72780762 failed! 2025-10-09 02:34:53,511 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-88013107:ctest-vn-42119215 is 11.88.127.65 and allocation pool is NOT set 2025-10-09 02:34:57,585 - 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 1015ms') 2025-10-09 02:34:57,585 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-88013107-72780762 failed! 2025-10-09 02:34:57,602 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-88013107:ctest-vn-42119215 is 11.88.127.65 and allocation pool is NOT set 2025-10-09 02:35:01,688 - 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-09 02:35:01,688 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-88013107-72780762 failed! 2025-10-09 02:35:01,702 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-88013107:ctest-vn-42119215 is 11.88.127.65 and allocation pool is NOT set 2025-10-09 02:35:05,789 - 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=2 ttl=63 time=6.41 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 1 received, 50% packet loss, time 1023ms\r\nrtt min/avg/max/mdev = 6.414/6.414/6.414/0.000 ms') 2025-10-09 02:35:05,789 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-88013107-72780762 passed 2025-10-09 02:35:05,859 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-09 02:35:05,859 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-88013107-72780762, IP 11.88.127.67, Port 22 2025-10-09 02:35:05,924 - 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-09 02:35:06,015 - DEBUG - VM ctest-TestBasicPolicy-88013107-72780762 is NOT ready for SSH connections, VM status: ACTIVE 2025-10-09 02:35:11,016 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-09 02:35:11,016 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-88013107-72780762, IP 11.88.127.67, Port 22 2025-10-09 02:35:11,084 - 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-09 02:35:11,174 - DEBUG - VM ctest-TestBasicPolicy-88013107-72780762 is NOT ready for SSH connections, VM status: ACTIVE 2025-10-09 02:35:16,174 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-09 02:35:16,175 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-88013107-72780762, IP 11.88.127.67, Port 22 2025-10-09 02:35:16,244 - 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-09 02:35:16,327 - DEBUG - VM ctest-TestBasicPolicy-88013107-72780762 is NOT ready for SSH connections, VM status: ACTIVE 2025-10-09 02:35:21,328 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-09 02:35:21,328 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-88013107-72780762, IP 11.88.127.67, Port 22 2025-10-09 02:35:21,396 - 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-09 02:35:21,484 - DEBUG - VM ctest-TestBasicPolicy-88013107-72780762 is NOT ready for SSH connections, VM status: ACTIVE 2025-10-09 02:35:26,484 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-09 02:35:26,484 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-88013107-72780762, IP 11.88.127.67, Port 22 2025-10-09 02:35:26,653 - DEBUG - VM ctest-TestBasicPolicy-88013107-72780762 is ready for SSH connections 2025-10-09 02:35:26,653 - INFO - Waiting for VM ctest-TestBasicPolicy-88013107-99575759 to be up.. 2025-10-09 02:35:26,750 - DEBUG - VM is in ACTIVE state now 2025-10-09 02:35:26,750 - INFO - VM name : ctest-TestBasicPolicy-88013107-99575759 2025-10-09 02:35:26,831 - DEBUG - VM ctest-TestBasicPolicy-88013107-99575759 ID is 61293f85-4d83-4f5c-8a94-a1e464394f76 2025-10-09 02:35:26,832 - DEBUG - VM ctest-TestBasicPolicy-88013107-99575759 launched on Node an-jenkins-deploy-platform-ansible-os-4252-1 2025-10-09 02:35:26,932 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine/61293f85-4d83-4f5c-8a94-a1e464394f76 2025-10-09 02:35:26,942 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine-interface/9d2fad5a-87e5-4c96-bcf3-e0f794600296 2025-10-09 02:35:28,104 - 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=4.93 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.21 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1000ms\r\nrtt min/avg/max/mdev = 1.214/3.071/4.928/1.857 ms') 2025-10-09 02:35:28,104 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-88013107-99575759 passed 2025-10-09 02:35:28,180 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-09 02:35:28,180 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-88013107-99575759, IP 195.73.199.67, Port 22 2025-10-09 02:35:28,364 - DEBUG - VM ctest-TestBasicPolicy-88013107-99575759 is ready for SSH connections 2025-10-09 02:35:28,365 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-09 02:35:28,365 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 195.73.199.67, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.27, gateway password: c0ntrail123 2025-10-09 02:35:28,365 - DEBUG - ping -s 56 -c 3 -W 1 195.73.199.67 2025-10-09 02:35:46,237 - DEBUG - PING 195.73.199.67 (195.73.199.67) 56(84) bytes of data. 64 bytes from 195.73.199.67: icmp_req=1 ttl=63 time=7.76 ms 64 bytes from 195.73.199.67: icmp_req=2 ttl=63 time=1.31 ms 64 bytes from 195.73.199.67: icmp_req=3 ttl=63 time=1.14 ms --- 195.73.199.67 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2004ms rtt min/avg/max/mdev = 1.141/3.405/7.762/3.081 ms 2025-10-09 02:35:46,237 - INFO - Ping to IP 195.73.199.67 from VM ctest-TestBasicPolicy-88013107-72780762 passed 2025-10-09 02:35:46,461 - DEBUG - Policy Update Response {"network-policy": {"uuid": "4d25523c-3da2-4123-b0ba-4b443068d84d", "href": "http://10.0.0.41:8082/network-policy/4d25523c-3da2-4123-b0ba-4b443068d84d"}} 2025-10-09 02:35:46,462 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-09 02:35:46,462 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 195.73.199.67, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.27, gateway password: c0ntrail123 2025-10-09 02:35:46,462 - DEBUG - ping -s 56 -c 3 -W 1 195.73.199.67 2025-10-09 02:35:49,907 - DEBUG - PING 195.73.199.67 (195.73.199.67) 56(84) bytes of data. 64 bytes from 195.73.199.67: icmp_req=1 ttl=63 time=3.97 ms --- 195.73.199.67 ping statistics --- 3 packets transmitted, 1 received, 66% packet loss, time 2002ms rtt min/avg/max/mdev = 3.976/3.976/3.976/0.000 ms 2025-10-09 02:35:49,907 - WARNING - Ping to IP 195.73.199.67 from VM ctest-TestBasicPolicy-88013107-72780762 failed 2025-10-09 02:35:49,907 - INFO - Deleting VM ctest-TestBasicPolicy-88013107-99575759 2025-10-09 02:35:49,981 - INFO - Deleting VM ctest-TestBasicPolicy-88013107-72780762 2025-10-09 02:35:50,416 - INFO - Deleted policy ctest-policy-allow-all-16064672 2025-10-09 02:35:50,416 - INFO - Deleting VN ctest-vn-23746378 2025-10-09 02:35:50,609 - DEBUG - VN a8167ab6-c785-42b6-84b0-bc2f613d43e5 still in use: Unable to complete operation on network a8167ab6-c785-42b6-84b0-bc2f613d43e5. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-949ca5ad-f559-49ef-b57e-04f522bcf3cc'] 2025-10-09 02:35:50,610 - WARNING - Deleting VN ctest-vn-23746378 failed..Will retry 2025-10-09 02:35:52,758 - DEBUG - Response for deleting network () 2025-10-09 02:35:52,759 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/70e17e01-6e15-4438-8db4-70558d504f1e 2025-10-09 02:35:52,764 - DEBUG - Response Code: 404 2025-10-09 02:35:52,764 - DEBUG - Requesting: http://10.0.0.56:8082/domains 2025-10-09 02:35:52,775 - DEBUG - Requesting: http://10.0.0.56:8082/domain/7ed77c0b-e642-4c13-a404-7756503cf17d 2025-10-09 02:35:52,840 - DEBUG - Requesting: http://10.0.0.56:8082/project/76c8e113-e36f-4e15-9047-b34e69ce3062 2025-10-09 02:35:52,936 - INFO - Validated that VN ctest-vn-23746378 is not found in API Server 2025-10-09 02:35:52,948 - DEBUG - VN ctest-vn-23746378 is not present in Agent 10.0.0.22 2025-10-09 02:35:52,958 - DEBUG - VN ctest-vn-23746378 is not present in Agent 10.0.0.27 2025-10-09 02:35:52,958 - INFO - Validated that VN ctest-vn-23746378 is not in any agent 2025-10-09 02:35:52,985 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-23746378 info 2025-10-09 02:35:52,985 - INFO - Deleting VN ctest-vn-42119215 2025-10-09 02:35:53,151 - DEBUG - Response for deleting network () 2025-10-09 02:35:53,151 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/3a3808ee-082f-42d3-bf36-135c8f4089ad 2025-10-09 02:35:53,157 - DEBUG - Response Code: 404 2025-10-09 02:35:53,157 - DEBUG - Requesting: http://10.0.0.56:8082/domains 2025-10-09 02:35:53,163 - DEBUG - Requesting: http://10.0.0.56:8082/domain/7ed77c0b-e642-4c13-a404-7756503cf17d 2025-10-09 02:35:53,189 - DEBUG - Requesting: http://10.0.0.56:8082/project/76c8e113-e36f-4e15-9047-b34e69ce3062 2025-10-09 02:35:53,292 - INFO - Validated that VN ctest-vn-42119215 is not found in API Server 2025-10-09 02:35:53,305 - DEBUG - VN ctest-vn-42119215 is not present in Agent 10.0.0.22 2025-10-09 02:35:53,315 - DEBUG - VN ctest-vn-42119215 is not present in Agent 10.0.0.27 2025-10-09 02:35:53,315 - INFO - Validated that VN ctest-vn-42119215 is not in any agent 2025-10-09 02:35:53,346 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-42119215 info 2025-10-09 02:35:54,613 - DEBUG - No XMPP flaps were noticed during the test 2025-10-09 02:35:54,613 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:01:35] 2025-10-09 02:35:54,613 - INFO - -------------------------------------------------------------------------------- 2025-10-09 02:35:55,334 - INFO - Deleted project: ctest-TestBasicPolicy-88013107, ID : 76c8e113-e36f-4e15-9047-b34e69ce3062