2025-02-06 02:19:28,991 - INFO - Domain Default found not creating
2025-02-06 02:19:29,101 - INFO - Project ctest-TestBasicPolicy-96576717 not found, creating it
2025-02-06 02:19:29,607 - INFO - Created Project:ctest-TestBasicPolicy-96576717, ID : a61ddbdc-16a3-41c3-b7f1-a90cf13ce2c8
2025-02-06 02:19:30,919 - INFO - ================================================================================
2025-02-06 02:19:30,919 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-02-06 02:19:30,920 - 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-02-06 02:19:31,168 - DEBUG - Nothing to compare xmpp stats {'10.0.0.32': {'10.0.0.32': '0'}} with
2025-02-06 02:19:31,168 - INFO - Initial checks done. Running the testcase now
2025-02-06 02:19:31,168 - INFO -
2025-02-06 02:19:31,692 - DEBUG - Response for create_network : {'network': {'id': 'd78494ce-eb44-483f-9026-772670b42af3', 'name': 'ctest-vn-09177064', 'tenant_id': 'a61ddbdc16a341c3b7f1a90cf13ce2c8', 'project_id': 'a61ddbdc16a341c3b7f1a90cf13ce2c8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-96576717', 'ctest-vn-09177064'], 'port_security_enabled': True, 'description': ''}}
2025-02-06 02:19:31,834 - DEBUG - Response for create_subnet : {'subnet': {'id': '305a133a-1a12-42ec-9dec-8b82de2145a0', 'name': '', 'tenant_id': 'a61ddbdc16a341c3b7f1a90cf13ce2c8', 'network_id': 'd78494ce-eb44-483f-9026-772670b42af3', 'ip_version': 4, 'cidr': '217.221.38.0/26', 'allocation_pools': [{'start': '217.221.38.2', 'end': '217.221.38.62'}], 'gateway_ip': '217.221.38.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '217.221.38.2', 'tags': [], 'project_id': 'a61ddbdc16a341c3b7f1a90cf13ce2c8'}}
2025-02-06 02:19:31,848 - INFO - Created VN ctest-vn-09177064
2025-02-06 02:19:31,899 - DEBUG - VN ctest-vn-09177064 UUID is d78494ce-eb44-483f-9026-772670b42af3
2025-02-06 02:19:32,196 - DEBUG - Response for create_network : {'network': {'id': 'dd4d6c87-754b-48d5-b90e-8f2b6679ee5d', 'name': 'ctest-vn-84152044', 'tenant_id': 'a61ddbdc16a341c3b7f1a90cf13ce2c8', 'project_id': 'a61ddbdc16a341c3b7f1a90cf13ce2c8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-96576717', 'ctest-vn-84152044'], 'port_security_enabled': True, 'description': ''}}
2025-02-06 02:19:32,387 - DEBUG - Response for create_subnet : {'subnet': {'id': '05ffe941-1850-415d-94c6-9a9b09060f3b', 'name': '', 'tenant_id': 'a61ddbdc16a341c3b7f1a90cf13ce2c8', 'network_id': 'dd4d6c87-754b-48d5-b90e-8f2b6679ee5d', 'ip_version': 4, 'cidr': '136.98.204.64/26', 'allocation_pools': [{'start': '136.98.204.66', 'end': '136.98.204.126'}], 'gateway_ip': '136.98.204.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '136.98.204.66', 'tags': [], 'project_id': 'a61ddbdc16a341c3b7f1a90cf13ce2c8'}}
2025-02-06 02:19:32,402 - INFO - Created VN ctest-vn-84152044
2025-02-06 02:19:32,451 - DEBUG - VN ctest-vn-84152044 UUID is dd4d6c87-754b-48d5-b90e-8f2b6679ee5d
2025-02-06 02:19:32,587 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-96576717:ctest-vn-09177064, 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-96576717:ctest-vn-84152044, 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-02-06 02:19:32,861 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd78494ce-eb44-483f-9026-772670b42af3', 'name': 'ctest-vn-09177064', 'tenant_id': 'a61ddbdc16a341c3b7f1a90cf13ce2c8', 'project_id': 'a61ddbdc16a341c3b7f1a90cf13ce2c8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['305a133a-1a12-42ec-9dec-8b82de2145a0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-96576717', 'ctest-vn-09177064'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-96576717', 'ctest-policy-allow-all-03892541']], 'subnet_ipam': [{'subnet_cidr': '217.221.38.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-02-06 02:19:33,076 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'dd4d6c87-754b-48d5-b90e-8f2b6679ee5d', 'name': 'ctest-vn-84152044', 'tenant_id': 'a61ddbdc16a341c3b7f1a90cf13ce2c8', 'project_id': 'a61ddbdc16a341c3b7f1a90cf13ce2c8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['05ffe941-1850-415d-94c6-9a9b09060f3b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-96576717', 'ctest-vn-84152044'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-96576717', 'ctest-policy-allow-all-03892541']], 'subnet_ipam': [{'subnet_cidr': '136.98.204.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-02-06 02:19:33,219 - DEBUG - Requesting: http://10.0.0.32:8082/domains
2025-02-06 02:19:33,512 - DEBUG - Requesting: http://10.0.0.32:8082/domains
2025-02-06 02:19:33,535 - DEBUG - Requesting: http://10.0.0.32:8082/domain/09e58e92-3429-497f-b82d-611df1053802
2025-02-06 02:19:33,547 - DEBUG - Requesting: http://10.0.0.32:8082/project/a61ddbdc-16a3-41c3-b7f1-a90cf13ce2c8
2025-02-06 02:19:33,615 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/d78494ce-eb44-483f-9026-772670b42af3
2025-02-06 02:19:33,625 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/d78494ce-eb44-483f-9026-772670b42af3
2025-02-06 02:19:33,633 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/92802e0d-49bd-4411-9e58-6d5e602b65be
2025-02-06 02:19:33,639 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/92802e0d-49bd-4411-9e58-6d5e602b65be
2025-02-06 02:19:33,646 - DEBUG - Requesting: http://10.0.0.32:8082/route-target/411aee72-af43-44ec-985c-ab7a183bb9f2
2025-02-06 02:19:33,651 - DEBUG - Route Targets: ['target:64512:8000004']
2025-02-06 02:19:33,652 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/d78494ce-eb44-483f-9026-772670b42af3
2025-02-06 02:19:33,660 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/92802e0d-49bd-4411-9e58-6d5e602b65be
2025-02-06 02:19:33,672 - INFO - Verified VN network id 8 for VN d78494ce-eb44-483f-9026-772670b42af3
2025-02-06 02:19:33,672 - INFO - Verifications in API Server for VN ctest-vn-09177064 passed
2025-02-06 02:19:33,672 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/d78494ce-eb44-483f-9026-772670b42af3
2025-02-06 02:19:33,680 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/92802e0d-49bd-4411-9e58-6d5e602b65be
2025-02-06 02:19:33,686 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/92802e0d-49bd-4411-9e58-6d5e602b65be
2025-02-06 02:19:33,691 - DEBUG - Requesting: http://10.0.0.32:8082/route-target/411aee72-af43-44ec-985c-ab7a183bb9f2
2025-02-06 02:19:33,702 - DEBUG - Control-node 10.0.0.32 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-96576717:ctest-vn-09177064', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-96576717', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15529701031511607359', 'uuid-lslong': '10387120597559945971'}, 'enable': 'true', 'created': '2025-02-06T02:19:31', 'last-modified': '2025-02-06T02:19:32', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.864111'}
2025-02-06 02:19:33,708 - DEBUG - Route Targets: ['target:64512:8000004']
2025-02-06 02:19:33,708 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-09177064 passed
2025-02-06 02:19:33,708 - DEBUG - ====Verifying policy data for ctest-vn-09177064 in API_Server ======
2025-02-06 02:19:33,708 - DEBUG - Requesting: http://10.0.0.32:8082/domains
2025-02-06 02:19:33,712 - DEBUG - Requesting: http://10.0.0.32:8082/domain/09e58e92-3429-497f-b82d-611df1053802
2025-02-06 02:19:33,722 - DEBUG - Requesting: http://10.0.0.32:8082/project/a61ddbdc-16a3-41c3-b7f1-a90cf13ce2c8
2025-02-06 02:19:33,792 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/d78494ce-eb44-483f-9026-772670b42af3
2025-02-06 02:19:33,800 - DEBUG - ==>Verifying data for policy with id: 1305c86b-262d-4086-a591-a0f6f86411d3, fqn: ['default-domain', 'ctest-TestBasicPolicy-96576717', 'ctest-policy-allow-all-03892541']
2025-02-06 02:19:33,800 - INFO - VN ctest-vn-09177064 Policy verification: verify_vn_policy_in_api_server, status: True
2025-02-06 02:19:33,800 - DEBUG - Verifying the vn in opserver
2025-02-06 02:19:33,800 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-96576717:ctest-vn-09177064 virtual network link through opserver 10.0.0.32
2025-02-06 02:19:33,800 - DEBUG - Requesting: http://10.0.0.32:8081/analytics/uves/virtual-networks
2025-02-06 02:19:34,089 - DEBUG - Requesting: http://10.0.0.32:8081/analytics/uves/virtual-networks
2025-02-06 02:19:34,139 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-96576717:ctest-vn-09177064', 'href': 'http://10.0.0.32:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-96576717:ctest-vn-09177064?flat'}
2025-02-06 02:19:34,139 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-96576717:ctest-vn-09177064 is found in opserver
2025-02-06 02:19:34,149 - DEBUG - Do not have enough data to verify VN in agent
2025-02-06 02:19:34,155 - DEBUG - VRF ids for VN ctest-vn-09177064: {}
2025-02-06 02:19:34,155 - DEBUG - Requesting: http://10.0.0.32:8082/domains
2025-02-06 02:19:34,160 - DEBUG - Requesting: http://10.0.0.32:8082/domain/09e58e92-3429-497f-b82d-611df1053802
2025-02-06 02:19:34,170 - DEBUG - Requesting: http://10.0.0.32:8082/project/a61ddbdc-16a3-41c3-b7f1-a90cf13ce2c8
2025-02-06 02:19:34,239 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/dd4d6c87-754b-48d5-b90e-8f2b6679ee5d
2025-02-06 02:19:34,250 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/dd4d6c87-754b-48d5-b90e-8f2b6679ee5d
2025-02-06 02:19:34,259 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/6b5b77db-cc5f-4b7e-91e0-c3a6cb6331f9
2025-02-06 02:19:34,265 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/6b5b77db-cc5f-4b7e-91e0-c3a6cb6331f9
2025-02-06 02:19:34,271 - DEBUG - Requesting: http://10.0.0.32:8082/route-target/86c336da-afd0-4909-af6e-830e6aff01d0
2025-02-06 02:19:34,276 - DEBUG - Route Targets: ['target:64512:8000005']
2025-02-06 02:19:34,276 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/dd4d6c87-754b-48d5-b90e-8f2b6679ee5d
2025-02-06 02:19:34,284 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/6b5b77db-cc5f-4b7e-91e0-c3a6cb6331f9
2025-02-06 02:19:34,296 - INFO - Verified VN network id 9 for VN dd4d6c87-754b-48d5-b90e-8f2b6679ee5d
2025-02-06 02:19:34,296 - INFO - Verifications in API Server for VN ctest-vn-84152044 passed
2025-02-06 02:19:34,296 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/dd4d6c87-754b-48d5-b90e-8f2b6679ee5d
2025-02-06 02:19:34,304 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/6b5b77db-cc5f-4b7e-91e0-c3a6cb6331f9
2025-02-06 02:19:34,310 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/6b5b77db-cc5f-4b7e-91e0-c3a6cb6331f9
2025-02-06 02:19:34,315 - DEBUG - Requesting: http://10.0.0.32:8082/route-target/86c336da-afd0-4909-af6e-830e6aff01d0
2025-02-06 02:19:34,326 - DEBUG - Control-node 10.0.0.32 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-96576717:ctest-vn-84152044', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-96576717', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15946521184633047253', 'uuid-lslong': '13334752963256249949'}, 'enable': 'true', 'created': '2025-02-06T02:19:32', 'last-modified': '2025-02-06T02:19:33', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.267019'}
2025-02-06 02:19:34,331 - DEBUG - Route Targets: ['target:64512:8000005']
2025-02-06 02:19:34,332 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-84152044 passed
2025-02-06 02:19:34,332 - DEBUG - ====Verifying policy data for ctest-vn-84152044 in API_Server ======
2025-02-06 02:19:34,332 - DEBUG - Requesting: http://10.0.0.32:8082/domains
2025-02-06 02:19:34,336 - DEBUG - Requesting: http://10.0.0.32:8082/domain/09e58e92-3429-497f-b82d-611df1053802
2025-02-06 02:19:34,346 - DEBUG - Requesting: http://10.0.0.32:8082/project/a61ddbdc-16a3-41c3-b7f1-a90cf13ce2c8
2025-02-06 02:19:34,414 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/dd4d6c87-754b-48d5-b90e-8f2b6679ee5d
2025-02-06 02:19:34,423 - DEBUG - ==>Verifying data for policy with id: 1305c86b-262d-4086-a591-a0f6f86411d3, fqn: ['default-domain', 'ctest-TestBasicPolicy-96576717', 'ctest-policy-allow-all-03892541']
2025-02-06 02:19:34,423 - INFO - VN ctest-vn-84152044 Policy verification: verify_vn_policy_in_api_server, status: True
2025-02-06 02:19:34,423 - DEBUG - Verifying the vn in opserver
2025-02-06 02:19:34,423 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-96576717:ctest-vn-84152044 virtual network link through opserver 10.0.0.32
2025-02-06 02:19:34,423 - DEBUG - Requesting: http://10.0.0.32:8081/analytics/uves/virtual-networks
2025-02-06 02:19:34,432 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-96576717:ctest-vn-84152044', 'href': 'http://10.0.0.32:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-96576717:ctest-vn-84152044?flat'}
2025-02-06 02:19:34,432 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-96576717:ctest-vn-84152044 is found in opserver
2025-02-06 02:19:34,441 - DEBUG - Do not have enough data to verify VN in agent
2025-02-06 02:19:34,446 - DEBUG - VRF ids for VN ctest-vn-84152044: {}
2025-02-06 02:19:34,492 - DEBUG - Services list from nova: [