2025-08-07 02:50:53,746 - INFO - Domain Default found not creating 2025-08-07 02:50:53,908 - INFO - Project ctest-TestBasicPolicy-52297373 not found, creating it 2025-08-07 02:50:54,522 - INFO - Created Project:ctest-TestBasicPolicy-52297373, ID : a48cb4e7-b5ec-4223-9e6c-42c878532c7f 2025-08-07 02:50:56,076 - INFO - ================================================================================ 2025-08-07 02:50:56,076 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-08-07 02:50:56,076 - 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-08-07 02:50:57,367 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.17': '0', '10.20.0.25': '0'}, '10.0.0.61': {'10.20.0.17': '0', '10.20.0.25': '0'}} with 2025-08-07 02:50:57,367 - INFO - Initial checks done. Running the testcase now 2025-08-07 02:50:57,367 - INFO - 2025-08-07 02:50:58,082 - DEBUG - Response for create_network : {'network': {'id': 'd48d494f-992b-4145-a25e-12bf07728939', 'name': 'ctest-vn-22833972', 'tenant_id': 'a48cb4e7b5ec42239e6c42c878532c7f', 'project_id': 'a48cb4e7b5ec42239e6c42c878532c7f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-52297373', 'ctest-vn-22833972'], 'port_security_enabled': True, 'description': ''}} 2025-08-07 02:50:58,418 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b71d1441-9414-4274-a4cf-835981014b3e', 'name': '', 'tenant_id': 'a48cb4e7b5ec42239e6c42c878532c7f', 'network_id': 'd48d494f-992b-4145-a25e-12bf07728939', 'ip_version': 4, 'cidr': '148.134.15.0/26', 'allocation_pools': [{'start': '148.134.15.2', 'end': '148.134.15.62'}], 'gateway_ip': '148.134.15.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '148.134.15.2', 'tags': [], 'project_id': 'a48cb4e7b5ec42239e6c42c878532c7f'}} 2025-08-07 02:50:58,445 - INFO - Created VN ctest-vn-22833972 2025-08-07 02:50:58,461 - DEBUG - VN ctest-vn-22833972 UUID is d48d494f-992b-4145-a25e-12bf07728939 2025-08-07 02:50:58,882 - DEBUG - Response for create_network : {'network': {'id': 'e1d4f255-f743-4733-b60c-c4008740650d', 'name': 'ctest-vn-52201630', 'tenant_id': 'a48cb4e7b5ec42239e6c42c878532c7f', 'project_id': 'a48cb4e7b5ec42239e6c42c878532c7f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-52297373', 'ctest-vn-52201630'], 'port_security_enabled': True, 'description': ''}} 2025-08-07 02:50:59,141 - DEBUG - Response for create_subnet : {'subnet': {'id': 'afd43e83-effd-423c-a746-fec6272dd1c1', 'name': '', 'tenant_id': 'a48cb4e7b5ec42239e6c42c878532c7f', 'network_id': 'e1d4f255-f743-4733-b60c-c4008740650d', 'ip_version': 4, 'cidr': '135.39.151.64/26', 'allocation_pools': [{'start': '135.39.151.66', 'end': '135.39.151.126'}], 'gateway_ip': '135.39.151.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '135.39.151.66', 'tags': [], 'project_id': 'a48cb4e7b5ec42239e6c42c878532c7f'}} 2025-08-07 02:50:59,174 - INFO - Created VN ctest-vn-52201630 2025-08-07 02:50:59,197 - DEBUG - VN ctest-vn-52201630 UUID is e1d4f255-f743-4733-b60c-c4008740650d 2025-08-07 02:50:59,306 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-52297373:ctest-vn-22833972, 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-52297373:ctest-vn-52201630, 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-08-07 02:50:59,665 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd48d494f-992b-4145-a25e-12bf07728939', 'name': 'ctest-vn-22833972', 'tenant_id': 'a48cb4e7b5ec42239e6c42c878532c7f', 'project_id': 'a48cb4e7b5ec42239e6c42c878532c7f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b71d1441-9414-4274-a4cf-835981014b3e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-52297373', 'ctest-vn-22833972'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-52297373', 'ctest-policy-allow-all-01179611']], 'subnet_ipam': [{'subnet_cidr': '148.134.15.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-07 02:50:59,878 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e1d4f255-f743-4733-b60c-c4008740650d', 'name': 'ctest-vn-52201630', 'tenant_id': 'a48cb4e7b5ec42239e6c42c878532c7f', 'project_id': 'a48cb4e7b5ec42239e6c42c878532c7f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['afd43e83-effd-423c-a746-fec6272dd1c1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-52297373', 'ctest-vn-52201630'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-52297373', 'ctest-policy-allow-all-01179611']], 'subnet_ipam': [{'subnet_cidr': '135.39.151.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-07 02:50:59,986 - DEBUG - Requesting: http://10.0.0.56:8082/domains 2025-08-07 02:51:00,324 - DEBUG - Requesting: http://10.0.0.56:8082/domains 2025-08-07 02:51:00,358 - DEBUG - Requesting: http://10.0.0.56:8082/domain/fb2d80da-9971-40dc-80ca-c5bb54e98569 2025-08-07 02:51:00,380 - DEBUG - Requesting: http://10.0.0.56:8082/project/a48cb4e7-b5ec-4223-9e6c-42c878532c7f 2025-08-07 02:51:00,485 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/d48d494f-992b-4145-a25e-12bf07728939 2025-08-07 02:51:00,507 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/d48d494f-992b-4145-a25e-12bf07728939 2025-08-07 02:51:00,523 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/c8ac16c9-699a-44aa-b0bb-4359acd2e373 2025-08-07 02:51:00,537 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/c8ac16c9-699a-44aa-b0bb-4359acd2e373 2025-08-07 02:51:00,548 - DEBUG - Requesting: http://10.0.0.56:8082/route-target/65623800-6147-4048-9bd8-3f9f3a37fc73 2025-08-07 02:51:00,561 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-07 02:51:00,561 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/d48d494f-992b-4145-a25e-12bf07728939 2025-08-07 02:51:00,577 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/c8ac16c9-699a-44aa-b0bb-4359acd2e373 2025-08-07 02:51:00,600 - INFO - Verified VN network id 12 for VN d48d494f-992b-4145-a25e-12bf07728939 2025-08-07 02:51:00,600 - INFO - Verifications in API Server for VN ctest-vn-22833972 passed 2025-08-07 02:51:00,600 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/d48d494f-992b-4145-a25e-12bf07728939 2025-08-07 02:51:00,614 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/c8ac16c9-699a-44aa-b0bb-4359acd2e373 2025-08-07 02:51:00,624 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/c8ac16c9-699a-44aa-b0bb-4359acd2e373 2025-08-07 02:51:00,635 - DEBUG - Requesting: http://10.0.0.56:8082/route-target/65623800-6147-4048-9bd8-3f9f3a37fc73 2025-08-07 02:51:00,653 - DEBUG - Control-node 10.0.0.56 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-52297373:ctest-vn-22833972', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-52297373', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15315978513977917765', 'uuid-lslong': '11699809493628127545'}, 'enable': 'true', 'created': '2025-08-07T02:50:58', 'last-modified': '2025-08-07T02:50:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.046024'} 2025-08-07 02:51:00,667 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-07 02:51:00,676 - DEBUG - Control-node 10.0.0.130 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-52297373:ctest-vn-22833972', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-52297373', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15315978513977917765', 'uuid-lslong': '11699809493628127545'}, 'enable': 'true', 'created': '2025-08-07T02:50:58', 'last-modified': '2025-08-07T02:50:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.069700'} 2025-08-07 02:51:00,687 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-07 02:51:00,697 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-52297373:ctest-vn-22833972', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-52297373', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15315978513977917765', 'uuid-lslong': '11699809493628127545'}, 'enable': 'true', 'created': '2025-08-07T02:50:58', 'last-modified': '2025-08-07T02:50:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.090757'} 2025-08-07 02:51:00,706 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-07 02:51:00,706 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-22833972 passed 2025-08-07 02:51:00,706 - DEBUG - ====Verifying policy data for ctest-vn-22833972 in API_Server ====== 2025-08-07 02:51:00,706 - DEBUG - Requesting: http://10.0.0.56:8082/domains 2025-08-07 02:51:00,716 - DEBUG - Requesting: http://10.0.0.56:8082/domain/fb2d80da-9971-40dc-80ca-c5bb54e98569 2025-08-07 02:51:00,732 - DEBUG - Requesting: http://10.0.0.56:8082/project/a48cb4e7-b5ec-4223-9e6c-42c878532c7f 2025-08-07 02:51:00,837 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/d48d494f-992b-4145-a25e-12bf07728939 2025-08-07 02:51:00,851 - DEBUG - ==>Verifying data for policy with id: c73fc014-01ae-4381-9b5c-de4450c3e554, fqn: ['default-domain', 'ctest-TestBasicPolicy-52297373', 'ctest-policy-allow-all-01179611'] 2025-08-07 02:51:00,851 - INFO - VN ctest-vn-22833972 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-07 02:51:00,852 - DEBUG - Verifying the vn in opserver 2025-08-07 02:51:00,852 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-52297373:ctest-vn-22833972 virtual network link through opserver 10.0.0.56 2025-08-07 02:51:00,852 - DEBUG - Requesting: http://10.0.0.56:8081/analytics/uves/virtual-networks 2025-08-07 02:51:01,154 - DEBUG - Requesting: http://10.0.0.56:8081/analytics/uves/virtual-networks 2025-08-07 02:51:01,235 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-52297373:ctest-vn-22833972', 'href': 'http://10.0.0.56:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-52297373:ctest-vn-22833972?flat'} 2025-08-07 02:51:01,235 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-52297373:ctest-vn-22833972 virtual network link through opserver 10.0.0.130 2025-08-07 02:51:01,235 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks 2025-08-07 02:51:01,541 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks 2025-08-07 02:51:01,613 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-52297373:ctest-vn-22833972', 'href': 'http://10.0.0.130:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-52297373:ctest-vn-22833972?flat'} 2025-08-07 02:51:01,613 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-52297373:ctest-vn-22833972 virtual network link through opserver 10.0.0.249 2025-08-07 02:51:01,613 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2025-08-07 02:51:01,928 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2025-08-07 02:51:01,995 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-52297373:ctest-vn-22833972', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-52297373:ctest-vn-22833972?flat'} 2025-08-07 02:51:01,995 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-52297373:ctest-vn-22833972 is found in opserver 2025-08-07 02:51:02,027 - DEBUG - Do not have enough data to verify VN in agent 2025-08-07 02:51:02,040 - DEBUG - VRF ids for VN ctest-vn-22833972: {} 2025-08-07 02:51:02,040 - DEBUG - Requesting: http://10.0.0.56:8082/domains 2025-08-07 02:51:02,048 - DEBUG - Requesting: http://10.0.0.56:8082/domain/fb2d80da-9971-40dc-80ca-c5bb54e98569 2025-08-07 02:51:02,063 - DEBUG - Requesting: http://10.0.0.56:8082/project/a48cb4e7-b5ec-4223-9e6c-42c878532c7f 2025-08-07 02:51:02,165 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/e1d4f255-f743-4733-b60c-c4008740650d 2025-08-07 02:51:02,178 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/e1d4f255-f743-4733-b60c-c4008740650d 2025-08-07 02:51:02,189 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/cbff2fc0-be39-4f01-abf9-b1606aab9529 2025-08-07 02:51:02,198 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/cbff2fc0-be39-4f01-abf9-b1606aab9529 2025-08-07 02:51:02,206 - DEBUG - Requesting: http://10.0.0.56:8082/route-target/9b5eb94e-d9b4-4f7b-9052-26e3aecf64c7 2025-08-07 02:51:02,215 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-08-07 02:51:02,215 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/e1d4f255-f743-4733-b60c-c4008740650d 2025-08-07 02:51:02,227 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/cbff2fc0-be39-4f01-abf9-b1606aab9529 2025-08-07 02:51:02,248 - INFO - Verified VN network id 13 for VN e1d4f255-f743-4733-b60c-c4008740650d 2025-08-07 02:51:02,248 - INFO - Verifications in API Server for VN ctest-vn-52201630 passed 2025-08-07 02:51:02,248 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/e1d4f255-f743-4733-b60c-c4008740650d 2025-08-07 02:51:02,262 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/cbff2fc0-be39-4f01-abf9-b1606aab9529 2025-08-07 02:51:02,272 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/cbff2fc0-be39-4f01-abf9-b1606aab9529 2025-08-07 02:51:02,284 - DEBUG - Requesting: http://10.0.0.56:8082/route-target/9b5eb94e-d9b4-4f7b-9052-26e3aecf64c7 2025-08-07 02:51:02,305 - DEBUG - Control-node 10.0.0.56 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-52297373:ctest-vn-52201630', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-52297373', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16272897804630968115', 'uuid-lslong': '13118075321171600653'}, 'enable': 'true', 'created': '2025-08-07T02:50:58', 'last-modified': '2025-08-07T02:50:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.470478'} 2025-08-07 02:51:02,314 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-08-07 02:51:02,321 - DEBUG - Control-node 10.0.0.130 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-52297373:ctest-vn-52201630', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-52297373', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16272897804630968115', 'uuid-lslong': '13118075321171600653'}, 'enable': 'true', 'created': '2025-08-07T02:50:58', 'last-modified': '2025-08-07T02:50:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.487975'} 2025-08-07 02:51:02,329 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-08-07 02:51:02,336 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-52297373:ctest-vn-52201630', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-52297373', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16272897804630968115', 'uuid-lslong': '13118075321171600653'}, 'enable': 'true', 'created': '2025-08-07T02:50:58', 'last-modified': '2025-08-07T02:50:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.497452'} 2025-08-07 02:51:02,344 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-08-07 02:51:02,344 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-52201630 passed 2025-08-07 02:51:02,344 - DEBUG - ====Verifying policy data for ctest-vn-52201630 in API_Server ====== 2025-08-07 02:51:02,344 - DEBUG - Requesting: http://10.0.0.56:8082/domains 2025-08-07 02:51:02,354 - DEBUG - Requesting: http://10.0.0.56:8082/domain/fb2d80da-9971-40dc-80ca-c5bb54e98569 2025-08-07 02:51:02,367 - DEBUG - Requesting: http://10.0.0.56:8082/project/a48cb4e7-b5ec-4223-9e6c-42c878532c7f 2025-08-07 02:51:02,471 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/e1d4f255-f743-4733-b60c-c4008740650d 2025-08-07 02:51:02,486 - DEBUG - ==>Verifying data for policy with id: c73fc014-01ae-4381-9b5c-de4450c3e554, fqn: ['default-domain', 'ctest-TestBasicPolicy-52297373', 'ctest-policy-allow-all-01179611'] 2025-08-07 02:51:02,486 - INFO - VN ctest-vn-52201630 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-07 02:51:02,486 - DEBUG - Verifying the vn in opserver 2025-08-07 02:51:02,486 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-52297373:ctest-vn-52201630 virtual network link through opserver 10.0.0.56 2025-08-07 02:51:02,487 - DEBUG - Requesting: http://10.0.0.56:8081/analytics/uves/virtual-networks 2025-08-07 02:51:02,548 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-52297373:ctest-vn-52201630', 'href': 'http://10.0.0.56:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-52297373:ctest-vn-52201630?flat'} 2025-08-07 02:51:02,548 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-52297373:ctest-vn-52201630 virtual network link through opserver 10.0.0.130 2025-08-07 02:51:02,548 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks 2025-08-07 02:51:02,614 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-52297373:ctest-vn-52201630', 'href': 'http://10.0.0.130:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-52297373:ctest-vn-52201630?flat'} 2025-08-07 02:51:02,615 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-52297373:ctest-vn-52201630 virtual network link through opserver 10.0.0.249 2025-08-07 02:51:02,615 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2025-08-07 02:51:02,690 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-52297373:ctest-vn-52201630', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-52297373:ctest-vn-52201630?flat'} 2025-08-07 02:51:02,690 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-52297373:ctest-vn-52201630 is found in opserver 2025-08-07 02:51:02,721 - DEBUG - Do not have enough data to verify VN in agent 2025-08-07 02:51:02,737 - DEBUG - VRF ids for VN ctest-vn-52201630: {} 2025-08-07 02:51:02,802 - DEBUG - Services list from nova: [, , , ] 2025-08-07 02:51:03,975 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-3767-2), Zone: (nova:an-jenkins-deploy-platform-ansible-os-3767-2) 2025-08-07 02:51:05,461 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-3767-1), Zone: (nova:an-jenkins-deploy-platform-ansible-os-3767-1) 2025-08-07 02:51:05,462 - INFO - Waiting for VM ctest-TestBasicPolicy-52297373-68792563 to be up.. 2025-08-07 02:51:05,561 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-08-07 02:51:10,663 - DEBUG - VM is in ACTIVE state now 2025-08-07 02:51:10,664 - INFO - VM name : ctest-TestBasicPolicy-52297373-68792563 2025-08-07 02:51:10,751 - DEBUG - VM ctest-TestBasicPolicy-52297373-68792563 ID is 6f2f3134-2f7a-4c01-bf07-2af8f2da2a1f 2025-08-07 02:51:10,779 - DEBUG - VM ctest-TestBasicPolicy-52297373-68792563 launched on Node an-jenkins-deploy-platform-ansible-os-3767-2 2025-08-07 02:51:10,877 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-machine/6f2f3134-2f7a-4c01-bf07-2af8f2da2a1f 2025-08-07 02:51:11,185 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-machine/6f2f3134-2f7a-4c01-bf07-2af8f2da2a1f 2025-08-07 02:51:11,319 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-machine-interface/82d9e4b7-4abb-442d-b70a-06784d799b69 2025-08-07 02:51:14,566 - 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 1026ms') 2025-08-07 02:51:14,566 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-52297373-68792563 failed! 2025-08-07 02:51:14,584 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-52297373:ctest-vn-22833972 is 148.134.15.1 and allocation pool is NOT set 2025-08-07 02:51:18,662 - 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-08-07 02:51:18,662 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-52297373-68792563 failed! 2025-08-07 02:51:18,683 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-52297373:ctest-vn-22833972 is 148.134.15.1 and allocation pool is NOT set 2025-08-07 02:51:22,752 - 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 1008ms') 2025-08-07 02:51:22,753 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-52297373-68792563 failed! 2025-08-07 02:51:22,772 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-52297373:ctest-vn-22833972 is 148.134.15.1 and allocation pool is NOT set 2025-08-07 02:51:26,845 - 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 1012ms') 2025-08-07 02:51:26,845 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-52297373-68792563 failed! 2025-08-07 02:51:26,860 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-52297373:ctest-vn-22833972 is 148.134.15.1 and allocation pool is NOT set 2025-08-07 02:51:30,943 - 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-08-07 02:51:30,943 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-52297373-68792563 failed! 2025-08-07 02:51:30,963 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-52297373:ctest-vn-22833972 is 148.134.15.1 and allocation pool is NOT set 2025-08-07 02:51:35,043 - 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 1014ms') 2025-08-07 02:51:35,043 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-52297373-68792563 failed! 2025-08-07 02:51:35,061 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-52297373:ctest-vn-22833972 is 148.134.15.1 and allocation pool is NOT set 2025-08-07 02:51:39,130 - 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 1009ms') 2025-08-07 02:51:39,131 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-52297373-68792563 failed! 2025-08-07 02:51:39,147 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-52297373:ctest-vn-22833972 is 148.134.15.1 and allocation pool is NOT set 2025-08-07 02:51:43,231 - 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-08-07 02:51:43,231 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-52297373-68792563 failed! 2025-08-07 02:51:43,249 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-52297373:ctest-vn-22833972 is 148.134.15.1 and allocation pool is NOT set 2025-08-07 02:51:47,332 - 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=8.98 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 1 received, 50% packet loss, time 1018ms\r\nrtt min/avg/max/mdev = 8.980/8.980/8.980/0.000 ms') 2025-08-07 02:51:47,332 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-52297373-68792563 passed 2025-08-07 02:51:47,449 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-07 02:51:47,449 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-52297373-68792563, IP 148.134.15.3, Port 22 2025-08-07 02:51:47,515 - 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-08-07 02:51:47,603 - DEBUG - VM ctest-TestBasicPolicy-52297373-68792563 is NOT ready for SSH connections, VM status: ACTIVE 2025-08-07 02:51:52,604 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-07 02:51:52,604 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-52297373-68792563, IP 148.134.15.3, Port 22 2025-08-07 02:51:52,664 - 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-08-07 02:51:52,759 - DEBUG - VM ctest-TestBasicPolicy-52297373-68792563 is NOT ready for SSH connections, VM status: ACTIVE 2025-08-07 02:51:57,760 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-07 02:51:57,760 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-52297373-68792563, IP 148.134.15.3, Port 22 2025-08-07 02:51:57,827 - 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-08-07 02:51:57,918 - DEBUG - VM ctest-TestBasicPolicy-52297373-68792563 is NOT ready for SSH connections, VM status: ACTIVE 2025-08-07 02:52:02,919 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-07 02:52:02,920 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-52297373-68792563, IP 148.134.15.3, Port 22 2025-08-07 02:52:02,978 - 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-08-07 02:52:03,069 - DEBUG - VM ctest-TestBasicPolicy-52297373-68792563 is NOT ready for SSH connections, VM status: ACTIVE 2025-08-07 02:52:08,069 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-07 02:52:08,069 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-52297373-68792563, IP 148.134.15.3, Port 22 2025-08-07 02:52:08,239 - DEBUG - VM ctest-TestBasicPolicy-52297373-68792563 is ready for SSH connections 2025-08-07 02:52:08,240 - INFO - Waiting for VM ctest-TestBasicPolicy-52297373-54661168 to be up.. 2025-08-07 02:52:08,336 - DEBUG - VM is in ACTIVE state now 2025-08-07 02:52:08,336 - INFO - VM name : ctest-TestBasicPolicy-52297373-54661168 2025-08-07 02:52:08,427 - DEBUG - VM ctest-TestBasicPolicy-52297373-54661168 ID is 21fbb0d8-525c-4939-beba-203665e3d879 2025-08-07 02:52:08,427 - DEBUG - VM ctest-TestBasicPolicy-52297373-54661168 launched on Node an-jenkins-deploy-platform-ansible-os-3767-1 2025-08-07 02:52:08,522 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-machine/21fbb0d8-525c-4939-beba-203665e3d879 2025-08-07 02:52:08,533 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-machine-interface/3ccf9bca-992f-456e-9468-c2245ca9e269 2025-08-07 02:52:09,757 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n64 bytes from 169.254.0.3: icmp_seq=1 ttl=63 time=5.29 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.652 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 = 0.652/2.971/5.291/2.319 ms') 2025-08-07 02:52:09,758 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-52297373-54661168 passed 2025-08-07 02:52:09,876 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-07 02:52:09,876 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-52297373-54661168, IP 135.39.151.67, Port 22 2025-08-07 02:52:09,945 - 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-08-07 02:52:10,042 - DEBUG - VM ctest-TestBasicPolicy-52297373-54661168 is NOT ready for SSH connections, VM status: ACTIVE 2025-08-07 02:52:15,043 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-07 02:52:15,043 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-52297373-54661168, IP 135.39.151.67, Port 22 2025-08-07 02:52:15,221 - DEBUG - VM ctest-TestBasicPolicy-52297373-54661168 is ready for SSH connections 2025-08-07 02:52:15,221 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-07 02:52:15,221 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 135.39.151.67, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.61, gateway password: c0ntrail123 2025-08-07 02:52:15,221 - DEBUG - ping -s 56 -c 3 -W 1 135.39.151.67 2025-08-07 02:53:11,905 - DEBUG - PING 135.39.151.67 (135.39.151.67) 56(84) bytes of data. 64 bytes from 135.39.151.67: icmp_req=1 ttl=63 time=7.10 ms 64 bytes from 135.39.151.67: icmp_req=2 ttl=63 time=1.49 ms 64 bytes from 135.39.151.67: icmp_req=3 ttl=63 time=1.16 ms --- 135.39.151.67 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2003ms rtt min/avg/max/mdev = 1.168/3.254/7.104/2.725 ms 2025-08-07 02:53:11,905 - INFO - Ping to IP 135.39.151.67 from VM ctest-TestBasicPolicy-52297373-68792563 passed 2025-08-07 02:53:12,134 - DEBUG - Policy Update Response {"network-policy": {"uuid": "c73fc014-01ae-4381-9b5c-de4450c3e554", "href": "http://10.0.0.249:8082/network-policy/c73fc014-01ae-4381-9b5c-de4450c3e554"}} 2025-08-07 02:53:12,134 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-07 02:53:12,134 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 135.39.151.67, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.61, gateway password: c0ntrail123 2025-08-07 02:53:12,134 - DEBUG - ping -s 56 -c 3 -W 1 135.39.151.67 2025-08-07 02:53:15,656 - DEBUG - PING 135.39.151.67 (135.39.151.67) 56(84) bytes of data. 64 bytes from 135.39.151.67: icmp_req=1 ttl=63 time=2.83 ms --- 135.39.151.67 ping statistics --- 3 packets transmitted, 1 received, 66% packet loss, time 2010ms rtt min/avg/max/mdev = 2.836/2.836/2.836/0.000 ms 2025-08-07 02:53:15,656 - WARNING - Ping to IP 135.39.151.67 from VM ctest-TestBasicPolicy-52297373-68792563 failed 2025-08-07 02:53:15,656 - INFO - Deleting VM ctest-TestBasicPolicy-52297373-54661168 2025-08-07 02:53:15,746 - INFO - Deleting VM ctest-TestBasicPolicy-52297373-68792563 2025-08-07 02:53:16,272 - INFO - Deleted policy ctest-policy-allow-all-01179611 2025-08-07 02:53:16,273 - INFO - Deleting VN ctest-vn-52201630 2025-08-07 02:53:16,350 - DEBUG - VN e1d4f255-f743-4733-b60c-c4008740650d still in use: Unable to complete operation on network e1d4f255-f743-4733-b60c-c4008740650d. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-a96f30ba-9c91-413b-a672-77f33b16e844'] 2025-08-07 02:53:16,350 - WARNING - Deleting VN ctest-vn-52201630 failed..Will retry 2025-08-07 02:53:18,545 - DEBUG - Response for deleting network () 2025-08-07 02:53:18,545 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/cbff2fc0-be39-4f01-abf9-b1606aab9529 2025-08-07 02:53:18,559 - DEBUG - Response Code: 404 2025-08-07 02:53:18,559 - DEBUG - Requesting: http://10.0.0.56:8082/domains 2025-08-07 02:53:18,569 - DEBUG - Requesting: http://10.0.0.56:8082/domain/fb2d80da-9971-40dc-80ca-c5bb54e98569 2025-08-07 02:53:18,587 - DEBUG - Requesting: http://10.0.0.56:8082/project/a48cb4e7-b5ec-4223-9e6c-42c878532c7f 2025-08-07 02:53:18,687 - INFO - Validated that VN ctest-vn-52201630 is not found in API Server 2025-08-07 02:53:18,703 - DEBUG - VN ctest-vn-52201630 is not present in Agent 10.0.0.41 2025-08-07 02:53:18,717 - DEBUG - VN ctest-vn-52201630 is not present in Agent 10.0.0.61 2025-08-07 02:53:18,717 - INFO - Validated that VN ctest-vn-52201630 is not in any agent 2025-08-07 02:53:18,755 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-52201630 info 2025-08-07 02:53:18,755 - INFO - Deleting VN ctest-vn-22833972 2025-08-07 02:53:18,923 - DEBUG - Response for deleting network () 2025-08-07 02:53:18,923 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/c8ac16c9-699a-44aa-b0bb-4359acd2e373 2025-08-07 02:53:18,930 - DEBUG - Response Code: 404 2025-08-07 02:53:18,930 - DEBUG - Requesting: http://10.0.0.56:8082/domains 2025-08-07 02:53:18,940 - DEBUG - Requesting: http://10.0.0.56:8082/domain/fb2d80da-9971-40dc-80ca-c5bb54e98569 2025-08-07 02:53:19,002 - DEBUG - Requesting: http://10.0.0.56:8082/project/a48cb4e7-b5ec-4223-9e6c-42c878532c7f 2025-08-07 02:53:19,103 - INFO - Validated that VN ctest-vn-22833972 is not found in API Server 2025-08-07 02:53:19,121 - DEBUG - VN ctest-vn-22833972 is not present in Agent 10.0.0.41 2025-08-07 02:53:19,136 - DEBUG - VN ctest-vn-22833972 is not present in Agent 10.0.0.61 2025-08-07 02:53:19,136 - INFO - Validated that VN ctest-vn-22833972 is not in any agent 2025-08-07 02:53:19,173 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-22833972 info 2025-08-07 02:53:20,452 - DEBUG - No XMPP flaps were noticed during the test 2025-08-07 02:53:20,452 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:02:24] 2025-08-07 02:53:20,452 - INFO - -------------------------------------------------------------------------------- 2025-08-07 02:53:21,232 - INFO - Deleted project: ctest-TestBasicPolicy-52297373, ID : a48cb4e7-b5ec-4223-9e6c-42c878532c7f