2025-08-10 11:26:38,703 - INFO - Domain Default found not creating 2025-08-10 11:26:38,834 - INFO - Project ctest-TestBasicPolicy-40315440 not found, creating it 2025-08-10 11:26:39,283 - INFO - Created Project:ctest-TestBasicPolicy-40315440, ID : 73c20ab5-7802-4306-8117-741ac6a87d88 2025-08-10 11:26:40,635 - INFO - ================================================================================ 2025-08-10 11:26:40,635 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-08-10 11:26:40,636 - 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-10 11:26:41,894 - DEBUG - Nothing to compare xmpp stats {'10.0.0.65': {'10.20.0.14': '0', '10.20.0.25': '0'}, '10.0.0.56': {'10.20.0.14': '0', '10.20.0.25': '0'}} with 2025-08-10 11:26:41,894 - INFO - Initial checks done. Running the testcase now 2025-08-10 11:26:41,894 - INFO - 2025-08-10 11:26:42,489 - DEBUG - Response for create_network : {'network': {'id': '92602b62-bac8-46ff-8116-69a17fbdbc12', 'name': 'ctest-vn-81851807', 'tenant_id': '73c20ab5780243068117741ac6a87d88', 'project_id': '73c20ab5780243068117741ac6a87d88', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40315440', 'ctest-vn-81851807'], 'port_security_enabled': True, 'description': ''}} 2025-08-10 11:26:42,740 - DEBUG - Response for create_subnet : {'subnet': {'id': '32c74ace-e6dd-4822-be4c-7cb37d136689', 'name': '', 'tenant_id': '73c20ab5780243068117741ac6a87d88', 'network_id': '92602b62-bac8-46ff-8116-69a17fbdbc12', 'ip_version': 4, 'cidr': '81.170.94.192/26', 'allocation_pools': [{'start': '81.170.94.194', 'end': '81.170.94.254'}], 'gateway_ip': '81.170.94.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '81.170.94.194', 'tags': [], 'project_id': '73c20ab5780243068117741ac6a87d88'}} 2025-08-10 11:26:42,758 - INFO - Created VN ctest-vn-81851807 2025-08-10 11:26:42,773 - DEBUG - VN ctest-vn-81851807 UUID is 92602b62-bac8-46ff-8116-69a17fbdbc12 2025-08-10 11:26:43,124 - DEBUG - Response for create_network : {'network': {'id': 'd78a02c7-cc44-40c8-8fd8-e4373067faff', 'name': 'ctest-vn-31610483', 'tenant_id': '73c20ab5780243068117741ac6a87d88', 'project_id': '73c20ab5780243068117741ac6a87d88', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40315440', 'ctest-vn-31610483'], 'port_security_enabled': True, 'description': ''}} 2025-08-10 11:26:43,364 - DEBUG - Response for create_subnet : {'subnet': {'id': '7ab235bd-210b-403c-8981-906394ea8e46', 'name': '', 'tenant_id': '73c20ab5780243068117741ac6a87d88', 'network_id': 'd78a02c7-cc44-40c8-8fd8-e4373067faff', 'ip_version': 4, 'cidr': '2.23.39.64/26', 'allocation_pools': [{'start': '2.23.39.66', 'end': '2.23.39.126'}], 'gateway_ip': '2.23.39.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2.23.39.66', 'tags': [], 'project_id': '73c20ab5780243068117741ac6a87d88'}} 2025-08-10 11:26:43,383 - INFO - Created VN ctest-vn-31610483 2025-08-10 11:26:43,393 - DEBUG - VN ctest-vn-31610483 UUID is d78a02c7-cc44-40c8-8fd8-e4373067faff 2025-08-10 11:26:43,496 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-40315440:ctest-vn-81851807, 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-40315440:ctest-vn-31610483, 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-10 11:26:43,806 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '92602b62-bac8-46ff-8116-69a17fbdbc12', 'name': 'ctest-vn-81851807', 'tenant_id': '73c20ab5780243068117741ac6a87d88', 'project_id': '73c20ab5780243068117741ac6a87d88', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['32c74ace-e6dd-4822-be4c-7cb37d136689'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40315440', 'ctest-vn-81851807'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-40315440', 'ctest-policy-allow-all-54770582']], 'subnet_ipam': [{'subnet_cidr': '81.170.94.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-10 11:26:43,978 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd78a02c7-cc44-40c8-8fd8-e4373067faff', 'name': 'ctest-vn-31610483', 'tenant_id': '73c20ab5780243068117741ac6a87d88', 'project_id': '73c20ab5780243068117741ac6a87d88', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7ab235bd-210b-403c-8981-906394ea8e46'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40315440', 'ctest-vn-31610483'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-40315440', 'ctest-policy-allow-all-54770582']], 'subnet_ipam': [{'subnet_cidr': '2.23.39.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-10 11:26:44,082 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2025-08-10 11:26:44,383 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2025-08-10 11:26:44,407 - DEBUG - Requesting: http://10.0.0.49:8082/domain/506b9682-8eb9-488e-ab69-24d332f4d228 2025-08-10 11:26:44,422 - DEBUG - Requesting: http://10.0.0.49:8082/project/73c20ab5-7802-4306-8117-741ac6a87d88 2025-08-10 11:26:44,510 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/92602b62-bac8-46ff-8116-69a17fbdbc12 2025-08-10 11:26:44,520 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/92602b62-bac8-46ff-8116-69a17fbdbc12 2025-08-10 11:26:44,529 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/722dd33a-986b-4c83-ae43-e95eaa3065aa 2025-08-10 11:26:44,535 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/722dd33a-986b-4c83-ae43-e95eaa3065aa 2025-08-10 11:26:44,542 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/104ba400-c3ba-4044-9e0f-23c6c7701cd5 2025-08-10 11:26:44,548 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-10 11:26:44,548 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/92602b62-bac8-46ff-8116-69a17fbdbc12 2025-08-10 11:26:44,556 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/722dd33a-986b-4c83-ae43-e95eaa3065aa 2025-08-10 11:26:44,570 - INFO - Verified VN network id 15 for VN 92602b62-bac8-46ff-8116-69a17fbdbc12 2025-08-10 11:26:44,570 - INFO - Verifications in API Server for VN ctest-vn-81851807 passed 2025-08-10 11:26:44,570 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/92602b62-bac8-46ff-8116-69a17fbdbc12 2025-08-10 11:26:44,580 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/722dd33a-986b-4c83-ae43-e95eaa3065aa 2025-08-10 11:26:44,587 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/722dd33a-986b-4c83-ae43-e95eaa3065aa 2025-08-10 11:26:44,594 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/104ba400-c3ba-4044-9e0f-23c6c7701cd5 2025-08-10 11:26:44,607 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-40315440:ctest-vn-81851807', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-40315440', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10547478030342178559', 'uuid-lslong': '9301738222734130194'}, 'enable': 'true', 'created': '2025-08-10T11:26:42', 'last-modified': '2025-08-10T11:26:43', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.835754'} 2025-08-10 11:26:44,613 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-10 11:26:44,618 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-40315440:ctest-vn-81851807', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-40315440', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10547478030342178559', 'uuid-lslong': '9301738222734130194'}, 'enable': 'true', 'created': '2025-08-10T11:26:42', 'last-modified': '2025-08-10T11:26:43', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.844893'} 2025-08-10 11:26:44,623 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-10 11:26:44,629 - DEBUG - Control-node 10.0.0.57 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-40315440:ctest-vn-81851807', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-40315440', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10547478030342178559', 'uuid-lslong': '9301738222734130194'}, 'enable': 'true', 'created': '2025-08-10T11:26:42', 'last-modified': '2025-08-10T11:26:43', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.858067'} 2025-08-10 11:26:44,636 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-10 11:26:44,636 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-81851807 passed 2025-08-10 11:26:44,636 - DEBUG - ====Verifying policy data for ctest-vn-81851807 in API_Server ====== 2025-08-10 11:26:44,636 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2025-08-10 11:26:44,641 - DEBUG - Requesting: http://10.0.0.49:8082/domain/506b9682-8eb9-488e-ab69-24d332f4d228 2025-08-10 11:26:44,651 - DEBUG - Requesting: http://10.0.0.49:8082/project/73c20ab5-7802-4306-8117-741ac6a87d88 2025-08-10 11:26:44,747 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/92602b62-bac8-46ff-8116-69a17fbdbc12 2025-08-10 11:26:44,759 - DEBUG - ==>Verifying data for policy with id: 64f8a24e-e426-4e8f-b1f9-5a47b7535d3d, fqn: ['default-domain', 'ctest-TestBasicPolicy-40315440', 'ctest-policy-allow-all-54770582'] 2025-08-10 11:26:44,759 - INFO - VN ctest-vn-81851807 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-10 11:26:44,759 - DEBUG - Verifying the vn in opserver 2025-08-10 11:26:44,760 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-40315440:ctest-vn-81851807 virtual network link through opserver 10.0.0.49 2025-08-10 11:26:44,760 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks 2025-08-10 11:26:45,046 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks 2025-08-10 11:26:45,096 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-40315440:ctest-vn-81851807', 'href': 'http://10.0.0.49:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-40315440:ctest-vn-81851807?flat'} 2025-08-10 11:26:45,096 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-40315440:ctest-vn-81851807 virtual network link through opserver 10.0.0.254 2025-08-10 11:26:45,097 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-08-10 11:26:45,381 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-08-10 11:26:45,429 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-40315440:ctest-vn-81851807', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-40315440:ctest-vn-81851807?flat'} 2025-08-10 11:26:45,429 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-40315440:ctest-vn-81851807 virtual network link through opserver 10.0.0.57 2025-08-10 11:26:45,429 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks 2025-08-10 11:26:45,717 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks 2025-08-10 11:26:45,765 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-40315440:ctest-vn-81851807', 'href': 'http://10.0.0.57:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-40315440:ctest-vn-81851807?flat'} 2025-08-10 11:26:45,765 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-40315440:ctest-vn-81851807 is found in opserver 2025-08-10 11:26:45,785 - DEBUG - Do not have enough data to verify VN in agent 2025-08-10 11:26:45,794 - DEBUG - VRF ids for VN ctest-vn-81851807: {} 2025-08-10 11:26:45,794 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2025-08-10 11:26:45,800 - DEBUG - Requesting: http://10.0.0.49:8082/domain/506b9682-8eb9-488e-ab69-24d332f4d228 2025-08-10 11:26:45,810 - DEBUG - Requesting: http://10.0.0.49:8082/project/73c20ab5-7802-4306-8117-741ac6a87d88 2025-08-10 11:26:45,894 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/d78a02c7-cc44-40c8-8fd8-e4373067faff 2025-08-10 11:26:45,906 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/d78a02c7-cc44-40c8-8fd8-e4373067faff 2025-08-10 11:26:45,915 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/ee579cb5-490f-4498-9569-878c69c8fdd4 2025-08-10 11:26:45,922 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/ee579cb5-490f-4498-9569-878c69c8fdd4 2025-08-10 11:26:45,928 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/6b433175-bc95-450f-8a72-63b0b41817ec 2025-08-10 11:26:45,933 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-08-10 11:26:45,933 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/d78a02c7-cc44-40c8-8fd8-e4373067faff 2025-08-10 11:26:45,942 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/ee579cb5-490f-4498-9569-878c69c8fdd4 2025-08-10 11:26:45,955 - INFO - Verified VN network id 16 for VN d78a02c7-cc44-40c8-8fd8-e4373067faff 2025-08-10 11:26:45,955 - INFO - Verifications in API Server for VN ctest-vn-31610483 passed 2025-08-10 11:26:45,955 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/d78a02c7-cc44-40c8-8fd8-e4373067faff 2025-08-10 11:26:45,963 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/ee579cb5-490f-4498-9569-878c69c8fdd4 2025-08-10 11:26:45,970 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/ee579cb5-490f-4498-9569-878c69c8fdd4 2025-08-10 11:26:45,976 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/6b433175-bc95-450f-8a72-63b0b41817ec 2025-08-10 11:26:45,988 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-40315440:ctest-vn-31610483', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-40315440', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15531229322089349320', 'uuid-lslong': '10365285468079651583'}, 'enable': 'true', 'created': '2025-08-10T11:26:43', 'last-modified': '2025-08-10T11:26:43', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.034308'} 2025-08-10 11:26:45,994 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-08-10 11:26:45,999 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-40315440:ctest-vn-31610483', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-40315440', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15531229322089349320', 'uuid-lslong': '10365285468079651583'}, 'enable': 'true', 'created': '2025-08-10T11:26:43', 'last-modified': '2025-08-10T11:26:43', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.044798'} 2025-08-10 11:26:46,005 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-08-10 11:26:46,010 - DEBUG - Control-node 10.0.0.57 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-40315440:ctest-vn-31610483', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-40315440', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15531229322089349320', 'uuid-lslong': '10365285468079651583'}, 'enable': 'true', 'created': '2025-08-10T11:26:43', 'last-modified': '2025-08-10T11:26:43', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.059841'} 2025-08-10 11:26:46,016 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-08-10 11:26:46,016 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-31610483 passed 2025-08-10 11:26:46,016 - DEBUG - ====Verifying policy data for ctest-vn-31610483 in API_Server ====== 2025-08-10 11:26:46,016 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2025-08-10 11:26:46,021 - DEBUG - Requesting: http://10.0.0.49:8082/domain/506b9682-8eb9-488e-ab69-24d332f4d228 2025-08-10 11:26:46,031 - DEBUG - Requesting: http://10.0.0.49:8082/project/73c20ab5-7802-4306-8117-741ac6a87d88 2025-08-10 11:26:46,113 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/d78a02c7-cc44-40c8-8fd8-e4373067faff 2025-08-10 11:26:46,123 - DEBUG - ==>Verifying data for policy with id: 64f8a24e-e426-4e8f-b1f9-5a47b7535d3d, fqn: ['default-domain', 'ctest-TestBasicPolicy-40315440', 'ctest-policy-allow-all-54770582'] 2025-08-10 11:26:46,123 - INFO - VN ctest-vn-31610483 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-10 11:26:46,123 - DEBUG - Verifying the vn in opserver 2025-08-10 11:26:46,123 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-40315440:ctest-vn-31610483 virtual network link through opserver 10.0.0.49 2025-08-10 11:26:46,123 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks 2025-08-10 11:26:46,168 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-40315440:ctest-vn-31610483', 'href': 'http://10.0.0.49:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-40315440:ctest-vn-31610483?flat'} 2025-08-10 11:26:46,168 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-40315440:ctest-vn-31610483 virtual network link through opserver 10.0.0.254 2025-08-10 11:26:46,168 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-08-10 11:26:46,213 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-40315440:ctest-vn-31610483', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-40315440:ctest-vn-31610483?flat'} 2025-08-10 11:26:46,213 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-40315440:ctest-vn-31610483 virtual network link through opserver 10.0.0.57 2025-08-10 11:26:46,213 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks 2025-08-10 11:26:46,256 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-40315440:ctest-vn-31610483', 'href': 'http://10.0.0.57:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-40315440:ctest-vn-31610483?flat'} 2025-08-10 11:26:46,256 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-40315440:ctest-vn-31610483 is found in opserver 2025-08-10 11:26:46,276 - DEBUG - Do not have enough data to verify VN in agent 2025-08-10 11:26:46,286 - DEBUG - VRF ids for VN ctest-vn-31610483: {} 2025-08-10 11:26:46,331 - DEBUG - Services list from nova: [, , , ] 2025-08-10 11:26:47,336 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-3786-1), Zone: (nova:an-jenkins-deploy-platform-ansible-os-3786-1) 2025-08-10 11:26:48,445 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-3786-2), Zone: (nova:an-jenkins-deploy-platform-ansible-os-3786-2) 2025-08-10 11:26:48,445 - INFO - Waiting for VM ctest-TestBasicPolicy-40315440-25101258 to be up.. 2025-08-10 11:26:48,512 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-08-10 11:26:53,578 - DEBUG - VM is in ACTIVE state now 2025-08-10 11:26:53,578 - INFO - VM name : ctest-TestBasicPolicy-40315440-25101258 2025-08-10 11:26:53,645 - DEBUG - VM ctest-TestBasicPolicy-40315440-25101258 ID is cbacd469-ec2a-4a8f-90d4-ab475a62f618 2025-08-10 11:26:53,665 - DEBUG - VM ctest-TestBasicPolicy-40315440-25101258 launched on Node an-jenkins-deploy-platform-ansible-os-3786-1 2025-08-10 11:26:53,738 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-machine/cbacd469-ec2a-4a8f-90d4-ab475a62f618 2025-08-10 11:26:54,024 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-machine/cbacd469-ec2a-4a8f-90d4-ab475a62f618 2025-08-10 11:26:54,053 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-machine-interface/9b3df441-43b3-47c4-9cba-fc6c8bf985c7 2025-08-10 11:26:57,272 - 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-08-10 11:26:57,272 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-40315440-25101258 failed! 2025-08-10 11:26:57,287 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-40315440:ctest-vn-81851807 is 81.170.94.193 and allocation pool is NOT set 2025-08-10 11:27:01,379 - 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 1028ms') 2025-08-10 11:27:01,379 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-40315440-25101258 failed! 2025-08-10 11:27:01,394 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-40315440:ctest-vn-81851807 is 81.170.94.193 and allocation pool is NOT set 2025-08-10 11:27:05,471 - 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-10 11:27:05,471 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-40315440-25101258 failed! 2025-08-10 11:27:05,484 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-40315440:ctest-vn-81851807 is 81.170.94.193 and allocation pool is NOT set 2025-08-10 11:27:09,563 - 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-10 11:27:09,563 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-40315440-25101258 failed! 2025-08-10 11:27:09,579 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-40315440:ctest-vn-81851807 is 81.170.94.193 and allocation pool is NOT set 2025-08-10 11:27:13,661 - 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 1024ms') 2025-08-10 11:27:13,661 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-40315440-25101258 failed! 2025-08-10 11:27:13,674 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-40315440:ctest-vn-81851807 is 81.170.94.193 and allocation pool is NOT set 2025-08-10 11:27:17,757 - 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 1024ms') 2025-08-10 11:27:17,757 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-40315440-25101258 failed! 2025-08-10 11:27:17,773 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-40315440:ctest-vn-81851807 is 81.170.94.193 and allocation pool is NOT set 2025-08-10 11:27:21,846 - 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 1020ms') 2025-08-10 11:27:21,846 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-40315440-25101258 failed! 2025-08-10 11:27:21,861 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-40315440:ctest-vn-81851807 is 81.170.94.193 and allocation pool is NOT set 2025-08-10 11:27:23,920 - 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.18 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.777 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1001ms\r\nrtt min/avg/max/mdev = 0.777/2.980/5.184/2.203 ms') 2025-08-10 11:27:23,920 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-40315440-25101258 passed 2025-08-10 11:27:24,027 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-10 11:27:24,027 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-40315440-25101258, IP 81.170.94.195, Port 22 2025-08-10 11:27:24,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-08-10 11:27:24,148 - DEBUG - VM ctest-TestBasicPolicy-40315440-25101258 is NOT ready for SSH connections, VM status: ACTIVE 2025-08-10 11:27:29,149 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-10 11:27:29,149 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-40315440-25101258, IP 81.170.94.195, Port 22 2025-08-10 11:27:29,204 - 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-10 11:27:29,273 - DEBUG - VM ctest-TestBasicPolicy-40315440-25101258 is NOT ready for SSH connections, VM status: ACTIVE 2025-08-10 11:27:34,273 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-10 11:27:34,273 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-40315440-25101258, IP 81.170.94.195, Port 22 2025-08-10 11:27:34,339 - 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-10 11:27:34,405 - DEBUG - VM ctest-TestBasicPolicy-40315440-25101258 is NOT ready for SSH connections, VM status: ACTIVE 2025-08-10 11:27:39,406 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-10 11:27:39,406 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-40315440-25101258, IP 81.170.94.195, Port 22 2025-08-10 11:27:39,574 - DEBUG - VM ctest-TestBasicPolicy-40315440-25101258 is ready for SSH connections 2025-08-10 11:27:39,574 - INFO - Waiting for VM ctest-TestBasicPolicy-40315440-52162465 to be up.. 2025-08-10 11:27:39,640 - DEBUG - VM is in ACTIVE state now 2025-08-10 11:27:39,640 - INFO - VM name : ctest-TestBasicPolicy-40315440-52162465 2025-08-10 11:27:39,701 - DEBUG - VM ctest-TestBasicPolicy-40315440-52162465 ID is 97aa0a63-5559-4983-b382-da2c778dbc28 2025-08-10 11:27:39,701 - DEBUG - VM ctest-TestBasicPolicy-40315440-52162465 launched on Node an-jenkins-deploy-platform-ansible-os-3786-2 2025-08-10 11:27:39,764 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-machine/97aa0a63-5559-4983-b382-da2c778dbc28 2025-08-10 11:27:39,772 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-machine-interface/9bd1e1f1-6052-47c7-a204-50c5b2121b0a 2025-08-10 11:27:40,963 - 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.13 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.649 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1001ms\r\nrtt min/avg/max/mdev = 0.649/1.388/2.127/0.739 ms') 2025-08-10 11:27:40,964 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-40315440-52162465 passed 2025-08-10 11:27:41,074 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-10 11:27:41,075 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-40315440-52162465, IP 2.23.39.67, Port 22 2025-08-10 11:27:41,226 - DEBUG - VM ctest-TestBasicPolicy-40315440-52162465 is ready for SSH connections 2025-08-10 11:27:41,226 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-10 11:27:41,226 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 2.23.39.67, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.65, gateway password: c0ntrail123 2025-08-10 11:27:41,226 - DEBUG - ping -s 56 -c 3 -W 1 2.23.39.67 2025-08-10 11:28:00,280 - DEBUG - PING 2.23.39.67 (2.23.39.67) 56(84) bytes of data. 64 bytes from 2.23.39.67: icmp_req=1 ttl=63 time=8.05 ms 64 bytes from 2.23.39.67: icmp_req=2 ttl=63 time=1.82 ms 64 bytes from 2.23.39.67: icmp_req=3 ttl=63 time=0.854 ms --- 2.23.39.67 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2004ms rtt min/avg/max/mdev = 0.854/3.579/8.058/3.191 ms 2025-08-10 11:28:00,280 - INFO - Ping to IP 2.23.39.67 from VM ctest-TestBasicPolicy-40315440-25101258 passed 2025-08-10 11:28:00,480 - DEBUG - Policy Update Response {"network-policy": {"uuid": "64f8a24e-e426-4e8f-b1f9-5a47b7535d3d", "href": "http://10.0.0.57:8082/network-policy/64f8a24e-e426-4e8f-b1f9-5a47b7535d3d"}} 2025-08-10 11:28:00,480 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-10 11:28:00,480 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 2.23.39.67, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.65, gateway password: c0ntrail123 2025-08-10 11:28:00,480 - DEBUG - ping -s 56 -c 3 -W 1 2.23.39.67 2025-08-10 11:28:03,898 - DEBUG - PING 2.23.39.67 (2.23.39.67) 56(84) bytes of data. 64 bytes from 2.23.39.67: icmp_req=1 ttl=63 time=3.79 ms --- 2.23.39.67 ping statistics --- 3 packets transmitted, 1 received, 66% packet loss, time 2009ms rtt min/avg/max/mdev = 3.798/3.798/3.798/0.000 ms 2025-08-10 11:28:03,898 - WARNING - Ping to IP 2.23.39.67 from VM ctest-TestBasicPolicy-40315440-25101258 failed 2025-08-10 11:28:03,899 - INFO - Deleting VM ctest-TestBasicPolicy-40315440-52162465 2025-08-10 11:28:03,953 - INFO - Deleting VM ctest-TestBasicPolicy-40315440-25101258 2025-08-10 11:28:04,342 - INFO - Deleted policy ctest-policy-allow-all-54770582 2025-08-10 11:28:04,342 - INFO - Deleting VN ctest-vn-31610483 2025-08-10 11:28:04,374 - DEBUG - VN d78a02c7-cc44-40c8-8fd8-e4373067faff still in use: Unable to complete operation on network d78a02c7-cc44-40c8-8fd8-e4373067faff. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-e1cde08a-a64a-445b-89be-d8b9c7f281ac'] 2025-08-10 11:28:04,374 - WARNING - Deleting VN ctest-vn-31610483 failed..Will retry 2025-08-10 11:28:06,501 - DEBUG - Response for deleting network () 2025-08-10 11:28:06,501 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/ee579cb5-490f-4498-9569-878c69c8fdd4 2025-08-10 11:28:06,507 - DEBUG - Response Code: 404 2025-08-10 11:28:06,507 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2025-08-10 11:28:06,512 - DEBUG - Requesting: http://10.0.0.49:8082/domain/506b9682-8eb9-488e-ab69-24d332f4d228 2025-08-10 11:28:06,530 - DEBUG - Requesting: http://10.0.0.49:8082/project/73c20ab5-7802-4306-8117-741ac6a87d88 2025-08-10 11:28:06,607 - INFO - Validated that VN ctest-vn-31610483 is not found in API Server 2025-08-10 11:28:06,621 - DEBUG - VN ctest-vn-31610483 is not present in Agent 10.0.0.65 2025-08-10 11:28:06,631 - DEBUG - VN ctest-vn-31610483 is not present in Agent 10.0.0.56 2025-08-10 11:28:06,631 - INFO - Validated that VN ctest-vn-31610483 is not in any agent 2025-08-10 11:28:06,661 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-31610483 info 2025-08-10 11:28:06,661 - INFO - Deleting VN ctest-vn-81851807 2025-08-10 11:28:06,785 - DEBUG - Response for deleting network () 2025-08-10 11:28:06,785 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/722dd33a-986b-4c83-ae43-e95eaa3065aa 2025-08-10 11:28:06,790 - DEBUG - Response Code: 404 2025-08-10 11:28:06,790 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2025-08-10 11:28:06,795 - DEBUG - Requesting: http://10.0.0.49:8082/domain/506b9682-8eb9-488e-ab69-24d332f4d228 2025-08-10 11:28:06,807 - DEBUG - Requesting: http://10.0.0.49:8082/project/73c20ab5-7802-4306-8117-741ac6a87d88 2025-08-10 11:28:06,895 - INFO - Validated that VN ctest-vn-81851807 is not found in API Server 2025-08-10 11:28:06,906 - DEBUG - VN ctest-vn-81851807 is not present in Agent 10.0.0.65 2025-08-10 11:28:06,916 - DEBUG - VN ctest-vn-81851807 is not present in Agent 10.0.0.56 2025-08-10 11:28:06,916 - INFO - Validated that VN ctest-vn-81851807 is not in any agent 2025-08-10 11:28:06,947 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-81851807 info 2025-08-10 11:28:08,190 - DEBUG - No XMPP flaps were noticed during the test
2025-08-10 11:28:08,190 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:01:28]
2025-08-10 11:28:08,190 - INFO - -------------------------------------------------------------------------------- 2025-08-10 11:28:08,880 - INFO - Deleted project: ctest-TestBasicPolicy-40315440, ID : 73c20ab5-7802-4306-8117-741ac6a87d88