2025-04-15 15:49:36,029 - INFO - Domain Default found not creating
2025-04-15 15:49:36,210 - INFO - Project ctest-TestBasicPolicy-34920764 not found, creating it
2025-04-15 15:49:36,725 - INFO - Created Project:ctest-TestBasicPolicy-34920764, ID : 0e9ff6b1-e62d-4ba0-a36a-21233b839e55
2025-04-15 15:49:38,254 - INFO - ================================================================================
2025-04-15 15:49:38,254 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-15 15:49:38,255 - 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-04-15 15:49:38,519 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with
2025-04-15 15:49:38,519 - INFO - Initial checks done. Running the testcase now
2025-04-15 15:49:38,519 - INFO -
2025-04-15 15:49:39,138 - DEBUG - Response for create_network : {'network': {'id': '7bf26af0-0648-45b7-a883-a616998dbc9a', 'name': 'ctest-vn-77161628', 'tenant_id': '0e9ff6b1e62d4ba0a36a21233b839e55', 'project_id': '0e9ff6b1e62d4ba0a36a21233b839e55', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-34920764', 'ctest-vn-77161628'], 'port_security_enabled': True, 'description': ''}}
2025-04-15 15:49:39,368 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b7e5c6ed-8a1b-44f5-9553-ec436d4f2c08', 'name': '', 'tenant_id': '0e9ff6b1e62d4ba0a36a21233b839e55', 'network_id': '7bf26af0-0648-45b7-a883-a616998dbc9a', 'ip_version': 4, 'cidr': '115.118.39.128/26', 'allocation_pools': [{'start': '115.118.39.130', 'end': '115.118.39.190'}], 'gateway_ip': '115.118.39.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '115.118.39.130', 'tags': [], 'project_id': '0e9ff6b1e62d4ba0a36a21233b839e55'}}
2025-04-15 15:49:39,392 - INFO - Created VN ctest-vn-77161628
2025-04-15 15:49:39,448 - DEBUG - VN ctest-vn-77161628 UUID is 7bf26af0-0648-45b7-a883-a616998dbc9a
2025-04-15 15:49:39,739 - DEBUG - Response for create_network : {'network': {'id': '9a0e499c-6f78-47bf-aa0e-6659c24caa21', 'name': 'ctest-vn-59756529', 'tenant_id': '0e9ff6b1e62d4ba0a36a21233b839e55', 'project_id': '0e9ff6b1e62d4ba0a36a21233b839e55', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-34920764', 'ctest-vn-59756529'], 'port_security_enabled': True, 'description': ''}}
2025-04-15 15:49:39,952 - DEBUG - Response for create_subnet : {'subnet': {'id': '0b8ff25e-35b1-4acb-b968-a43600a37112', 'name': '', 'tenant_id': '0e9ff6b1e62d4ba0a36a21233b839e55', 'network_id': '9a0e499c-6f78-47bf-aa0e-6659c24caa21', 'ip_version': 4, 'cidr': '60.129.21.192/26', 'allocation_pools': [{'start': '60.129.21.194', 'end': '60.129.21.254'}], 'gateway_ip': '60.129.21.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '60.129.21.194', 'tags': [], 'project_id': '0e9ff6b1e62d4ba0a36a21233b839e55'}}
2025-04-15 15:49:39,972 - INFO - Created VN ctest-vn-59756529
2025-04-15 15:49:40,028 - DEBUG - VN ctest-vn-59756529 UUID is 9a0e499c-6f78-47bf-aa0e-6659c24caa21
2025-04-15 15:49:40,184 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-34920764:ctest-vn-77161628, 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-34920764:ctest-vn-59756529, 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-04-15 15:49:40,489 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7bf26af0-0648-45b7-a883-a616998dbc9a', 'name': 'ctest-vn-77161628', 'tenant_id': '0e9ff6b1e62d4ba0a36a21233b839e55', 'project_id': '0e9ff6b1e62d4ba0a36a21233b839e55', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b7e5c6ed-8a1b-44f5-9553-ec436d4f2c08'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-34920764', 'ctest-vn-77161628'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-34920764', 'ctest-policy-allow-all-80909073']], 'subnet_ipam': [{'subnet_cidr': '115.118.39.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-15 15:49:40,729 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9a0e499c-6f78-47bf-aa0e-6659c24caa21', 'name': 'ctest-vn-59756529', 'tenant_id': '0e9ff6b1e62d4ba0a36a21233b839e55', 'project_id': '0e9ff6b1e62d4ba0a36a21233b839e55', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0b8ff25e-35b1-4acb-b968-a43600a37112'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-34920764', 'ctest-vn-59756529'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-34920764', 'ctest-policy-allow-all-80909073']], 'subnet_ipam': [{'subnet_cidr': '60.129.21.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-15 15:49:40,900 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-04-15 15:49:41,209 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-04-15 15:49:41,239 - DEBUG - Requesting: http://10.0.0.22:8082/domain/be2cd41e-edb8-4787-99b0-1739f2661f4f
2025-04-15 15:49:41,253 - DEBUG - Requesting: http://10.0.0.22:8082/project/0e9ff6b1-e62d-4ba0-a36a-21233b839e55
2025-04-15 15:49:41,336 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/7bf26af0-0648-45b7-a883-a616998dbc9a
2025-04-15 15:49:41,348 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/7bf26af0-0648-45b7-a883-a616998dbc9a
2025-04-15 15:49:41,360 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/87410f2f-8b89-42f1-8e2e-62b2a0642423
2025-04-15 15:49:41,369 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/87410f2f-8b89-42f1-8e2e-62b2a0642423
2025-04-15 15:49:41,376 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/bb4f870d-4f0d-4409-8207-43df1e22948a
2025-04-15 15:49:41,383 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-15 15:49:41,383 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/7bf26af0-0648-45b7-a883-a616998dbc9a
2025-04-15 15:49:41,393 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/87410f2f-8b89-42f1-8e2e-62b2a0642423
2025-04-15 15:49:41,410 - INFO - Verified VN network id 8 for VN 7bf26af0-0648-45b7-a883-a616998dbc9a
2025-04-15 15:49:41,410 - INFO - Verifications in API Server for VN ctest-vn-77161628 passed
2025-04-15 15:49:41,410 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/7bf26af0-0648-45b7-a883-a616998dbc9a
2025-04-15 15:49:41,420 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/87410f2f-8b89-42f1-8e2e-62b2a0642423
2025-04-15 15:49:41,427 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/87410f2f-8b89-42f1-8e2e-62b2a0642423
2025-04-15 15:49:41,435 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/bb4f870d-4f0d-4409-8207-43df1e22948a
2025-04-15 15:49:41,447 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-34920764:ctest-vn-77161628', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-34920764', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8931318590159209911', 'uuid-lslong': '12142731636316683418'}, 'enable': 'true', 'created': '2025-04-15T15:49:39', 'last-modified': '2025-04-15T15:49:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.988361'}
2025-04-15 15:49:41,454 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-15 15:49:41,454 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-77161628 passed
2025-04-15 15:49:41,454 - DEBUG - ====Verifying policy data for ctest-vn-77161628 in API_Server ======
2025-04-15 15:49:41,454 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-04-15 15:49:41,460 - DEBUG - Requesting: http://10.0.0.22:8082/domain/be2cd41e-edb8-4787-99b0-1739f2661f4f
2025-04-15 15:49:41,476 - DEBUG - Requesting: http://10.0.0.22:8082/project/0e9ff6b1-e62d-4ba0-a36a-21233b839e55
2025-04-15 15:49:41,551 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/7bf26af0-0648-45b7-a883-a616998dbc9a
2025-04-15 15:49:41,562 - DEBUG - ==>Verifying data for policy with id: a79af3bb-9bf6-4622-8070-67285bdc618b, fqn: ['default-domain', 'ctest-TestBasicPolicy-34920764', 'ctest-policy-allow-all-80909073']
2025-04-15 15:49:41,562 - INFO - VN ctest-vn-77161628 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-15 15:49:41,562 - DEBUG - Verifying the vn in opserver
2025-04-15 15:49:41,563 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-34920764:ctest-vn-77161628 virtual network link through opserver 10.0.0.22
2025-04-15 15:49:41,563 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-04-15 15:49:41,855 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-04-15 15:49:41,914 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-34920764:ctest-vn-77161628', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-34920764:ctest-vn-77161628?flat'}
2025-04-15 15:49:41,914 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-34920764:ctest-vn-77161628 is found in opserver
2025-04-15 15:49:41,926 - DEBUG - Do not have enough data to verify VN in agent
2025-04-15 15:49:41,931 - DEBUG - VRF ids for VN ctest-vn-77161628: {}
2025-04-15 15:49:41,931 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-04-15 15:49:41,938 - DEBUG - Requesting: http://10.0.0.22:8082/domain/be2cd41e-edb8-4787-99b0-1739f2661f4f
2025-04-15 15:49:41,952 - DEBUG - Requesting: http://10.0.0.22:8082/project/0e9ff6b1-e62d-4ba0-a36a-21233b839e55
2025-04-15 15:49:42,026 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/9a0e499c-6f78-47bf-aa0e-6659c24caa21
2025-04-15 15:49:42,040 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/9a0e499c-6f78-47bf-aa0e-6659c24caa21
2025-04-15 15:49:42,050 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/dde8b6e0-f529-4e48-990c-a9181e63c94c
2025-04-15 15:49:42,058 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/dde8b6e0-f529-4e48-990c-a9181e63c94c
2025-04-15 15:49:42,066 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/22471cfd-b345-4f9e-98c7-02bf07136812
2025-04-15 15:49:42,074 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-15 15:49:42,074 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/9a0e499c-6f78-47bf-aa0e-6659c24caa21
2025-04-15 15:49:42,085 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/dde8b6e0-f529-4e48-990c-a9181e63c94c
2025-04-15 15:49:42,101 - INFO - Verified VN network id 9 for VN 9a0e499c-6f78-47bf-aa0e-6659c24caa21
2025-04-15 15:49:42,101 - INFO - Verifications in API Server for VN ctest-vn-59756529 passed
2025-04-15 15:49:42,102 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/9a0e499c-6f78-47bf-aa0e-6659c24caa21
2025-04-15 15:49:42,111 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/dde8b6e0-f529-4e48-990c-a9181e63c94c
2025-04-15 15:49:42,119 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/dde8b6e0-f529-4e48-990c-a9181e63c94c
2025-04-15 15:49:42,127 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/22471cfd-b345-4f9e-98c7-02bf07136812
2025-04-15 15:49:42,139 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-34920764:ctest-vn-59756529', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-34920764', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11100891067748730815', 'uuid-lslong': '12253844171819624993'}, 'enable': 'true', 'created': '2025-04-15T15:49:39', 'last-modified': '2025-04-15T15:49:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.436214'}
2025-04-15 15:49:42,145 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-15 15:49:42,145 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-59756529 passed
2025-04-15 15:49:42,146 - DEBUG - ====Verifying policy data for ctest-vn-59756529 in API_Server ======
2025-04-15 15:49:42,146 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-04-15 15:49:42,151 - DEBUG - Requesting: http://10.0.0.22:8082/domain/be2cd41e-edb8-4787-99b0-1739f2661f4f
2025-04-15 15:49:42,163 - DEBUG - Requesting: http://10.0.0.22:8082/project/0e9ff6b1-e62d-4ba0-a36a-21233b839e55
2025-04-15 15:49:42,238 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/9a0e499c-6f78-47bf-aa0e-6659c24caa21
2025-04-15 15:49:42,247 - DEBUG - ==>Verifying data for policy with id: a79af3bb-9bf6-4622-8070-67285bdc618b, fqn: ['default-domain', 'ctest-TestBasicPolicy-34920764', 'ctest-policy-allow-all-80909073']
2025-04-15 15:49:42,248 - INFO - VN ctest-vn-59756529 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-15 15:49:42,248 - DEBUG - Verifying the vn in opserver
2025-04-15 15:49:42,248 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-34920764:ctest-vn-59756529 virtual network link through opserver 10.0.0.22
2025-04-15 15:49:42,248 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-04-15 15:49:42,259 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-34920764:ctest-vn-59756529', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-34920764:ctest-vn-59756529?flat'}
2025-04-15 15:49:42,259 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-34920764:ctest-vn-59756529 is found in opserver
2025-04-15 15:49:42,270 - DEBUG - Do not have enough data to verify VN in agent
2025-04-15 15:49:42,277 - DEBUG - VRF ids for VN ctest-vn-59756529: {}
2025-04-15 15:49:42,338 - DEBUG - Services list from nova: [