2026-04-20 02:42:41,830 - INFO - Domain Default found not creating 2026-04-20 02:42:42,010 - INFO - Project ctest-TestBasicPolicy-33885599 not found, creating it 2026-04-20 02:42:42,633 - INFO - Created Project:ctest-TestBasicPolicy-33885599, ID : 882d1923-8782-43ed-ae36-2c43bdad0960 2026-04-20 02:42:44,109 - INFO - ================================================================================ 2026-04-20 02:42:44,109 - INFO - STARTING TEST : test_basic_policy_allow_deny 2026-04-20 02:42:44,109 - 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 2026-04-20 02:42:45,369 - DEBUG - Nothing to compare xmpp stats {'10.0.0.240': {'10.20.0.129': '0', '10.20.0.25': '0'}, '10.0.0.65': {'10.20.0.25': '0', '10.20.0.129': '1'}} with 2026-04-20 02:42:45,369 - INFO - Initial checks done. Running the testcase now 2026-04-20 02:42:45,369 - INFO - 2026-04-20 02:42:46,023 - DEBUG - Response for create_network : {'network': {'id': 'de54a4ac-77fe-49de-a869-aea4b2da1e9c', 'name': 'ctest-vn-97010981', 'tenant_id': '882d1923878243edae362c43bdad0960', 'project_id': '882d1923878243edae362c43bdad0960', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-33885599', 'ctest-vn-97010981'], 'port_security_enabled': True, 'description': ''}} 2026-04-20 02:42:46,327 - DEBUG - Response for create_subnet : {'subnet': {'id': '85c64400-f156-4b84-9405-c9de53998bd1', 'name': '', 'tenant_id': '882d1923878243edae362c43bdad0960', 'network_id': 'de54a4ac-77fe-49de-a869-aea4b2da1e9c', 'ip_version': 4, 'cidr': '80.105.162.128/26', 'allocation_pools': [{'start': '80.105.162.130', 'end': '80.105.162.190'}], 'gateway_ip': '80.105.162.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '80.105.162.130', 'tags': [], 'project_id': '882d1923878243edae362c43bdad0960'}} 2026-04-20 02:42:46,348 - INFO - Created VN ctest-vn-97010981 2026-04-20 02:42:46,361 - DEBUG - VN ctest-vn-97010981 UUID is de54a4ac-77fe-49de-a869-aea4b2da1e9c 2026-04-20 02:42:46,724 - DEBUG - Response for create_network : {'network': {'id': 'a3a0a6f3-b4bc-4655-a9a7-bebc59743593', 'name': 'ctest-vn-92975656', 'tenant_id': '882d1923878243edae362c43bdad0960', 'project_id': '882d1923878243edae362c43bdad0960', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-33885599', 'ctest-vn-92975656'], 'port_security_enabled': True, 'description': ''}} 2026-04-20 02:42:46,954 - DEBUG - Response for create_subnet : {'subnet': {'id': '8aef80bc-f39c-4e74-b3d1-9eb0df8f82c6', 'name': '', 'tenant_id': '882d1923878243edae362c43bdad0960', 'network_id': 'a3a0a6f3-b4bc-4655-a9a7-bebc59743593', 'ip_version': 4, 'cidr': '182.229.213.0/26', 'allocation_pools': [{'start': '182.229.213.2', 'end': '182.229.213.62'}], 'gateway_ip': '182.229.213.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '182.229.213.2', 'tags': [], 'project_id': '882d1923878243edae362c43bdad0960'}} 2026-04-20 02:42:46,975 - INFO - Created VN ctest-vn-92975656 2026-04-20 02:42:46,986 - DEBUG - VN ctest-vn-92975656 UUID is a3a0a6f3-b4bc-4655-a9a7-bebc59743593 2026-04-20 02:42:47,070 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-33885599:ctest-vn-97010981, 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-33885599:ctest-vn-92975656, 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] 2026-04-20 02:42:47,370 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'de54a4ac-77fe-49de-a869-aea4b2da1e9c', 'name': 'ctest-vn-97010981', 'tenant_id': '882d1923878243edae362c43bdad0960', 'project_id': '882d1923878243edae362c43bdad0960', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['85c64400-f156-4b84-9405-c9de53998bd1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-33885599', 'ctest-vn-97010981'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-33885599', 'ctest-policy-allow-all-26266580']], 'subnet_ipam': [{'subnet_cidr': '80.105.162.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-04-20 02:42:47,575 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a3a0a6f3-b4bc-4655-a9a7-bebc59743593', 'name': 'ctest-vn-92975656', 'tenant_id': '882d1923878243edae362c43bdad0960', 'project_id': '882d1923878243edae362c43bdad0960', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8aef80bc-f39c-4e74-b3d1-9eb0df8f82c6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-33885599', 'ctest-vn-92975656'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-33885599', 'ctest-policy-allow-all-26266580']], 'subnet_ipam': [{'subnet_cidr': '182.229.213.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-04-20 02:42:47,690 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-04-20 02:42:48,001 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-04-20 02:42:48,029 - DEBUG - Requesting: http://10.0.0.38:8082/domain/c2b9cdf0-ff50-48aa-bc48-322f89577022 2026-04-20 02:42:48,042 - DEBUG - Requesting: http://10.0.0.38:8082/project/882d1923-8782-43ed-ae36-2c43bdad0960 2026-04-20 02:42:48,131 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/de54a4ac-77fe-49de-a869-aea4b2da1e9c 2026-04-20 02:42:48,144 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/de54a4ac-77fe-49de-a869-aea4b2da1e9c 2026-04-20 02:42:48,153 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7932c818-4842-48cd-898d-f50dda0ec62e 2026-04-20 02:42:48,159 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7932c818-4842-48cd-898d-f50dda0ec62e 2026-04-20 02:42:48,166 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/69e02b1e-931c-477f-b588-1b9a9bb932de 2026-04-20 02:42:48,172 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-20 02:42:48,172 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/de54a4ac-77fe-49de-a869-aea4b2da1e9c 2026-04-20 02:42:48,180 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7932c818-4842-48cd-898d-f50dda0ec62e 2026-04-20 02:42:48,192 - INFO - Verified VN network id 15 for VN de54a4ac-77fe-49de-a869-aea4b2da1e9c 2026-04-20 02:42:48,192 - INFO - Verifications in API Server for VN ctest-vn-97010981 passed 2026-04-20 02:42:48,193 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/de54a4ac-77fe-49de-a869-aea4b2da1e9c 2026-04-20 02:42:48,201 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7932c818-4842-48cd-898d-f50dda0ec62e 2026-04-20 02:42:48,206 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7932c818-4842-48cd-898d-f50dda0ec62e 2026-04-20 02:42:48,212 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/69e02b1e-931c-477f-b588-1b9a9bb932de 2026-04-20 02:42:48,223 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-33885599:ctest-vn-97010981', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-33885599', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16020610835118180830', 'uuid-lslong': '12135422693325020828'}, 'enable': 'true', 'created': '2026-04-20T02:42:45', 'last-modified': '2026-04-20T02:42:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.884472'} 2026-04-20 02:42:48,234 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-20 02:42:48,240 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-33885599:ctest-vn-97010981', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-33885599', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16020610835118180830', 'uuid-lslong': '12135422693325020828'}, 'enable': 'true', 'created': '2026-04-20T02:42:45', 'last-modified': '2026-04-20T02:42:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.896763'} 2026-04-20 02:42:48,246 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-20 02:42:48,254 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-33885599:ctest-vn-97010981', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-33885599', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16020610835118180830', 'uuid-lslong': '12135422693325020828'}, 'enable': 'true', 'created': '2026-04-20T02:42:45', 'last-modified': '2026-04-20T02:42:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.915586'} 2026-04-20 02:42:48,260 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-20 02:42:48,260 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-97010981 passed 2026-04-20 02:42:48,261 - DEBUG - ====Verifying policy data for ctest-vn-97010981 in API_Server ====== 2026-04-20 02:42:48,261 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-04-20 02:42:48,267 - DEBUG - Requesting: http://10.0.0.38:8082/domain/c2b9cdf0-ff50-48aa-bc48-322f89577022 2026-04-20 02:42:48,278 - DEBUG - Requesting: http://10.0.0.38:8082/project/882d1923-8782-43ed-ae36-2c43bdad0960 2026-04-20 02:42:48,366 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/de54a4ac-77fe-49de-a869-aea4b2da1e9c 2026-04-20 02:42:48,377 - DEBUG - ==>Verifying data for policy with id: abfe91de-6748-4bd3-b67b-927d8b1e225a, fqn: ['default-domain', 'ctest-TestBasicPolicy-33885599', 'ctest-policy-allow-all-26266580'] 2026-04-20 02:42:48,377 - INFO - VN ctest-vn-97010981 Policy verification: verify_vn_policy_in_api_server, status: True 2026-04-20 02:42:48,377 - DEBUG - Verifying the vn in opserver 2026-04-20 02:42:48,377 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-33885599:ctest-vn-97010981 virtual network link through opserver 10.0.0.38 2026-04-20 02:42:48,378 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-04-20 02:42:48,684 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-04-20 02:42:48,743 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-33885599:ctest-vn-97010981', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-33885599:ctest-vn-97010981?flat'} 2026-04-20 02:42:48,743 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-33885599:ctest-vn-97010981 virtual network link through opserver 10.0.0.27 2026-04-20 02:42:48,744 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2026-04-20 02:42:49,035 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2026-04-20 02:42:49,093 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-33885599:ctest-vn-97010981', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-33885599:ctest-vn-97010981?flat'} 2026-04-20 02:42:49,093 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-33885599:ctest-vn-97010981 virtual network link through opserver 10.0.0.23 2026-04-20 02:42:49,093 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2026-04-20 02:42:49,391 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2026-04-20 02:42:49,451 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-33885599:ctest-vn-97010981', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-33885599:ctest-vn-97010981?flat'} 2026-04-20 02:42:49,451 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-33885599:ctest-vn-97010981 is found in opserver 2026-04-20 02:42:49,472 - DEBUG - Do not have enough data to verify VN in agent 2026-04-20 02:42:49,481 - DEBUG - VRF ids for VN ctest-vn-97010981: {} 2026-04-20 02:42:49,482 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-04-20 02:42:49,487 - DEBUG - Requesting: http://10.0.0.38:8082/domain/c2b9cdf0-ff50-48aa-bc48-322f89577022 2026-04-20 02:42:49,498 - DEBUG - Requesting: http://10.0.0.38:8082/project/882d1923-8782-43ed-ae36-2c43bdad0960 2026-04-20 02:42:49,576 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a3a0a6f3-b4bc-4655-a9a7-bebc59743593 2026-04-20 02:42:49,590 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a3a0a6f3-b4bc-4655-a9a7-bebc59743593 2026-04-20 02:42:49,600 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/539dabc1-dec4-4091-8f79-2b4f404a8f1c 2026-04-20 02:42:49,609 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/539dabc1-dec4-4091-8f79-2b4f404a8f1c 2026-04-20 02:42:49,617 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/99bd7db0-a28e-4269-839d-d55c985c09ea 2026-04-20 02:42:49,624 - DEBUG - Route Targets: ['target:64512:8000006'] 2026-04-20 02:42:49,624 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a3a0a6f3-b4bc-4655-a9a7-bebc59743593 2026-04-20 02:42:49,632 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/539dabc1-dec4-4091-8f79-2b4f404a8f1c 2026-04-20 02:42:49,647 - INFO - Verified VN network id 16 for VN a3a0a6f3-b4bc-4655-a9a7-bebc59743593 2026-04-20 02:42:49,647 - INFO - Verifications in API Server for VN ctest-vn-92975656 passed 2026-04-20 02:42:49,647 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a3a0a6f3-b4bc-4655-a9a7-bebc59743593 2026-04-20 02:42:49,657 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/539dabc1-dec4-4091-8f79-2b4f404a8f1c 2026-04-20 02:42:49,665 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/539dabc1-dec4-4091-8f79-2b4f404a8f1c 2026-04-20 02:42:49,671 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/99bd7db0-a28e-4269-839d-d55c985c09ea 2026-04-20 02:42:49,683 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-33885599:ctest-vn-92975656', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-33885599', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11790607390095459925', 'uuid-lslong': '12224949429684417939'}, 'enable': 'true', 'created': '2026-04-20T02:42:46', 'last-modified': '2026-04-20T02:42:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.152531'} 2026-04-20 02:42:49,688 - DEBUG - Route Targets: ['target:64512:8000006'] 2026-04-20 02:42:49,693 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-33885599:ctest-vn-92975656', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-33885599', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11790607390095459925', 'uuid-lslong': '12224949429684417939'}, 'enable': 'true', 'created': '2026-04-20T02:42:46', 'last-modified': '2026-04-20T02:42:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.154047'} 2026-04-20 02:42:49,699 - DEBUG - Route Targets: ['target:64512:8000006'] 2026-04-20 02:42:49,703 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-33885599:ctest-vn-92975656', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-33885599', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11790607390095459925', 'uuid-lslong': '12224949429684417939'}, 'enable': 'true', 'created': '2026-04-20T02:42:46', 'last-modified': '2026-04-20T02:42:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.172587'} 2026-04-20 02:42:49,709 - DEBUG - Route Targets: ['target:64512:8000006'] 2026-04-20 02:42:49,709 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-92975656 passed 2026-04-20 02:42:49,709 - DEBUG - ====Verifying policy data for ctest-vn-92975656 in API_Server ====== 2026-04-20 02:42:49,709 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-04-20 02:42:49,716 - DEBUG - Requesting: http://10.0.0.38:8082/domain/c2b9cdf0-ff50-48aa-bc48-322f89577022 2026-04-20 02:42:49,727 - DEBUG - Requesting: http://10.0.0.38:8082/project/882d1923-8782-43ed-ae36-2c43bdad0960 2026-04-20 02:42:49,820 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a3a0a6f3-b4bc-4655-a9a7-bebc59743593 2026-04-20 02:42:49,829 - DEBUG - ==>Verifying data for policy with id: abfe91de-6748-4bd3-b67b-927d8b1e225a, fqn: ['default-domain', 'ctest-TestBasicPolicy-33885599', 'ctest-policy-allow-all-26266580'] 2026-04-20 02:42:49,829 - INFO - VN ctest-vn-92975656 Policy verification: verify_vn_policy_in_api_server, status: True 2026-04-20 02:42:49,829 - DEBUG - Verifying the vn in opserver 2026-04-20 02:42:49,829 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-33885599:ctest-vn-92975656 virtual network link through opserver 10.0.0.38 2026-04-20 02:42:49,829 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-04-20 02:42:49,905 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-33885599:ctest-vn-92975656', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-33885599:ctest-vn-92975656?flat'} 2026-04-20 02:42:49,905 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-33885599:ctest-vn-92975656 virtual network link through opserver 10.0.0.27 2026-04-20 02:42:49,905 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2026-04-20 02:42:49,973 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-33885599:ctest-vn-92975656', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-33885599:ctest-vn-92975656?flat'} 2026-04-20 02:42:49,973 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-33885599:ctest-vn-92975656 virtual network link through opserver 10.0.0.23 2026-04-20 02:42:49,973 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2026-04-20 02:42:50,033 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-33885599:ctest-vn-92975656', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-33885599:ctest-vn-92975656?flat'} 2026-04-20 02:42:50,033 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-33885599:ctest-vn-92975656 is found in opserver 2026-04-20 02:42:50,052 - DEBUG - Do not have enough data to verify VN in agent 2026-04-20 02:42:50,061 - DEBUG - VRF ids for VN ctest-vn-92975656: {} 2026-04-20 02:42:50,112 - DEBUG - Services list from nova: [, , , ] 2026-04-20 02:42:51,151 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-5644-2), Zone: (nova:an-jenkins-deploy-platform-ansible-os-5644-2) 2026-04-20 02:42:52,429 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-5644-1), Zone: (nova:an-jenkins-deploy-platform-ansible-os-5644-1) 2026-04-20 02:42:52,429 - INFO - Waiting for VM ctest-TestBasicPolicy-33885599-28895671 to be up.. 2026-04-20 02:42:52,517 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2026-04-20 02:42:57,599 - DEBUG - VM is in ACTIVE state now 2026-04-20 02:42:57,599 - INFO - VM name : ctest-TestBasicPolicy-33885599-28895671 2026-04-20 02:42:57,682 - DEBUG - VM ctest-TestBasicPolicy-33885599-28895671 ID is f780abeb-82fe-4b86-a474-0b47b1e8e2ac 2026-04-20 02:42:57,705 - DEBUG - VM ctest-TestBasicPolicy-33885599-28895671 launched on Node an-jenkins-deploy-platform-ansible-os-5644-2 2026-04-20 02:42:57,780 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/f780abeb-82fe-4b86-a474-0b47b1e8e2ac 2026-04-20 02:42:58,083 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/f780abeb-82fe-4b86-a474-0b47b1e8e2ac 2026-04-20 02:42:58,122 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine-interface/82dbf82a-61e5-405d-9615-502ab84b4edd 2026-04-20 02:43:01,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 1019ms') 2026-04-20 02:43:01,305 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-33885599-28895671 failed! 2026-04-20 02:43:01,317 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-33885599:ctest-vn-97010981 is 80.105.162.129 and allocation pool is NOT set 2026-04-20 02:43:05,406 - 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') 2026-04-20 02:43:05,406 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-33885599-28895671 failed! 2026-04-20 02:43:05,422 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-33885599:ctest-vn-97010981 is 80.105.162.129 and allocation pool is NOT set 2026-04-20 02:43:09,504 - 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') 2026-04-20 02:43:09,504 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-33885599-28895671 failed! 2026-04-20 02:43:09,515 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-33885599:ctest-vn-97010981 is 80.105.162.129 and allocation pool is NOT set 2026-04-20 02:43:13,596 - 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') 2026-04-20 02:43:13,596 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-33885599-28895671 failed! 2026-04-20 02:43:13,609 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-33885599:ctest-vn-97010981 is 80.105.162.129 and allocation pool is NOT set 2026-04-20 02:43:17,692 - 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') 2026-04-20 02:43:17,692 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-33885599-28895671 failed! 2026-04-20 02:43:17,704 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-33885599:ctest-vn-97010981 is 80.105.162.129 and allocation pool is NOT set 2026-04-20 02:43:21,786 - 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') 2026-04-20 02:43:21,786 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-33885599-28895671 failed! 2026-04-20 02:43:21,799 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-33885599:ctest-vn-97010981 is 80.105.162.129 and allocation pool is NOT set 2026-04-20 02:43:25,885 - 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') 2026-04-20 02:43:25,885 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-33885599-28895671 failed! 2026-04-20 02:43:25,898 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-33885599:ctest-vn-97010981 is 80.105.162.129 and allocation pool is NOT set 2026-04-20 02:43:29,981 - 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') 2026-04-20 02:43:29,982 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-33885599-28895671 failed! 2026-04-20 02:43:29,995 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-33885599:ctest-vn-97010981 is 80.105.162.129 and allocation pool is NOT set 2026-04-20 02:43:32,058 - 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.53 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.66 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 = 2.655/3.593/4.531/0.938 ms') 2026-04-20 02:43:32,058 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-33885599-28895671 passed 2026-04-20 02:43:32,125 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-04-20 02:43:32,125 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-33885599-28895671, IP 80.105.162.131, Port 22 2026-04-20 02:43:32,180 - 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': ''} 2026-04-20 02:43:32,264 - DEBUG - VM ctest-TestBasicPolicy-33885599-28895671 is NOT ready for SSH connections, VM status: ACTIVE 2026-04-20 02:43:37,265 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-04-20 02:43:37,265 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-33885599-28895671, IP 80.105.162.131, Port 22 2026-04-20 02:43:37,324 - 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': ''} 2026-04-20 02:43:37,418 - DEBUG - VM ctest-TestBasicPolicy-33885599-28895671 is NOT ready for SSH connections, VM status: ACTIVE 2026-04-20 02:43:42,419 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-04-20 02:43:42,420 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-33885599-28895671, IP 80.105.162.131, Port 22 2026-04-20 02:43:42,477 - 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': ''} 2026-04-20 02:43:42,572 - DEBUG - VM ctest-TestBasicPolicy-33885599-28895671 is NOT ready for SSH connections, VM status: ACTIVE 2026-04-20 02:43:47,573 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-04-20 02:43:47,573 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-33885599-28895671, IP 80.105.162.131, Port 22 2026-04-20 02:43:47,639 - 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': ''} 2026-04-20 02:43:47,720 - DEBUG - VM ctest-TestBasicPolicy-33885599-28895671 is NOT ready for SSH connections, VM status: ACTIVE 2026-04-20 02:43:52,721 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-04-20 02:43:52,721 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-33885599-28895671, IP 80.105.162.131, Port 22 2026-04-20 02:43:52,884 - DEBUG - VM ctest-TestBasicPolicy-33885599-28895671 is ready for SSH connections 2026-04-20 02:43:52,884 - INFO - Waiting for VM ctest-TestBasicPolicy-33885599-99051257 to be up.. 2026-04-20 02:43:52,966 - DEBUG - VM is in ACTIVE state now 2026-04-20 02:43:52,966 - INFO - VM name : ctest-TestBasicPolicy-33885599-99051257 2026-04-20 02:43:53,048 - DEBUG - VM ctest-TestBasicPolicy-33885599-99051257 ID is 1db4e5f4-ecab-458a-ab4b-0f489d78611e 2026-04-20 02:43:53,048 - DEBUG - VM ctest-TestBasicPolicy-33885599-99051257 launched on Node an-jenkins-deploy-platform-ansible-os-5644-1 2026-04-20 02:43:53,138 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/1db4e5f4-ecab-458a-ab4b-0f489d78611e 2026-04-20 02:43:53,149 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine-interface/9d70c7f2-c7eb-430e-af02-8c949c7f7007 2026-04-20 02:43:54,306 - 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.89 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.40 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 = 1.395/2.141/2.888/0.746 ms') 2026-04-20 02:43:54,307 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-33885599-99051257 passed 2026-04-20 02:43:54,373 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-04-20 02:43:54,373 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-33885599-99051257, IP 182.229.213.3, Port 22 2026-04-20 02:43:54,539 - DEBUG - VM ctest-TestBasicPolicy-33885599-99051257 is ready for SSH connections 2026-04-20 02:43:54,540 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-04-20 02:43:54,540 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 182.229.213.3, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.65, gateway password: c0ntrail123 2026-04-20 02:43:54,540 - DEBUG - ping -s 56 -c 3 -W 1 182.229.213.3 2026-04-20 02:44:15,923 - DEBUG - PING 182.229.213.3 (182.229.213.3) 56(84) bytes of data. 64 bytes from 182.229.213.3: icmp_req=1 ttl=63 time=5.41 ms 64 bytes from 182.229.213.3: icmp_req=2 ttl=63 time=3.14 ms 64 bytes from 182.229.213.3: icmp_req=3 ttl=63 time=2.90 ms --- 182.229.213.3 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2003ms rtt min/avg/max/mdev = 2.908/3.821/5.414/1.130 ms 2026-04-20 02:44:15,923 - INFO - Ping to IP 182.229.213.3 from VM ctest-TestBasicPolicy-33885599-28895671 passed 2026-04-20 02:44:16,156 - DEBUG - Policy Update Response {"network-policy": {"uuid": "abfe91de-6748-4bd3-b67b-927d8b1e225a", "href": "http://10.0.0.23:8082/network-policy/abfe91de-6748-4bd3-b67b-927d8b1e225a"}} 2026-04-20 02:44:16,156 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-04-20 02:44:16,156 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 182.229.213.3, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.65, gateway password: c0ntrail123 2026-04-20 02:44:16,156 - DEBUG - ping -s 56 -c 3 -W 1 182.229.213.3 2026-04-20 02:44:19,840 - DEBUG - PING 182.229.213.3 (182.229.213.3) 56(84) bytes of data. --- 182.229.213.3 ping statistics --- 3 packets transmitted, 0 received, 100% packet loss, time 2002ms 2026-04-20 02:44:19,840 - WARNING - Ping to IP 182.229.213.3 from VM ctest-TestBasicPolicy-33885599-28895671 failed 2026-04-20 02:44:19,840 - INFO - Deleting VM ctest-TestBasicPolicy-33885599-99051257 2026-04-20 02:44:19,910 - INFO - Deleting VM ctest-TestBasicPolicy-33885599-28895671 2026-04-20 02:44:20,296 - INFO - Deleted policy ctest-policy-allow-all-26266580 2026-04-20 02:44:20,296 - INFO - Deleting VN ctest-vn-92975656 2026-04-20 02:44:20,339 - DEBUG - VN a3a0a6f3-b4bc-4655-a9a7-bebc59743593 still in use: Unable to complete operation on network a3a0a6f3-b4bc-4655-a9a7-bebc59743593. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-7e02d079-29c8-49ef-9eba-21e999f8fcdd'] 2026-04-20 02:44:20,339 - WARNING - Deleting VN ctest-vn-92975656 failed..Will retry 2026-04-20 02:44:22,486 - DEBUG - Response for deleting network () 2026-04-20 02:44:22,487 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/539dabc1-dec4-4091-8f79-2b4f404a8f1c 2026-04-20 02:44:22,502 - DEBUG - Response Code: 404 2026-04-20 02:44:22,502 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-04-20 02:44:22,518 - DEBUG - Requesting: http://10.0.0.38:8082/domain/c2b9cdf0-ff50-48aa-bc48-322f89577022 2026-04-20 02:44:22,532 - DEBUG - Requesting: http://10.0.0.38:8082/project/882d1923-8782-43ed-ae36-2c43bdad0960 2026-04-20 02:44:22,621 - INFO - Validated that VN ctest-vn-92975656 is not found in API Server 2026-04-20 02:44:22,632 - DEBUG - VN ctest-vn-92975656 is not present in Agent 10.0.0.240 2026-04-20 02:44:22,641 - DEBUG - VN ctest-vn-92975656 is not present in Agent 10.0.0.65 2026-04-20 02:44:22,641 - INFO - Validated that VN ctest-vn-92975656 is not in any agent 2026-04-20 02:44:22,667 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-92975656 info 2026-04-20 02:44:22,667 - INFO - Deleting VN ctest-vn-97010981 2026-04-20 02:44:22,826 - DEBUG - Response for deleting network () 2026-04-20 02:44:22,826 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7932c818-4842-48cd-898d-f50dda0ec62e 2026-04-20 02:44:22,840 - DEBUG - Response Code: 404 2026-04-20 02:44:22,841 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-04-20 02:44:22,847 - DEBUG - Requesting: http://10.0.0.38:8082/domain/c2b9cdf0-ff50-48aa-bc48-322f89577022 2026-04-20 02:44:22,857 - DEBUG - Requesting: http://10.0.0.38:8082/project/882d1923-8782-43ed-ae36-2c43bdad0960 2026-04-20 02:44:22,945 - INFO - Validated that VN ctest-vn-97010981 is not found in API Server 2026-04-20 02:44:22,957 - DEBUG - VN ctest-vn-97010981 is not present in Agent 10.0.0.240 2026-04-20 02:44:22,968 - DEBUG - VN ctest-vn-97010981 is not present in Agent 10.0.0.65 2026-04-20 02:44:22,968 - INFO - Validated that VN ctest-vn-97010981 is not in any agent 2026-04-20 02:44:23,000 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-97010981 info 2026-04-20 02:44:24,265 - DEBUG - No XMPP flaps were noticed during the test 2026-04-20 02:44:24,265 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:01:40] 2026-04-20 02:44:24,265 - INFO - -------------------------------------------------------------------------------- 2026-04-20 02:44:25,007 - INFO - Deleted project: ctest-TestBasicPolicy-33885599, ID : 882d1923-8782-43ed-ae36-2c43bdad0960