2025-04-24 19:33:41,084 - INFO - Domain Default found not creating
2025-04-24 19:33:41,223 - INFO - Project ctest-TestBasicPolicy-62196395 not found, creating it
2025-04-24 19:33:41,680 - INFO - Created Project:ctest-TestBasicPolicy-62196395, ID : ee7b816e-42b2-45a7-970e-169207280d2b
2025-04-24 19:33:43,240 - INFO - ================================================================================
2025-04-24 19:33:43,240 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-24 19:33:43,240 - 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-24 19:33:43,500 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-04-24 19:33:43,500 - INFO - Initial checks done. Running the testcase now
2025-04-24 19:33:43,500 - INFO -
2025-04-24 19:33:44,081 - DEBUG - Response for create_network : {'network': {'id': 'e21f5f62-e89c-43b4-a869-be16b24b504e', 'name': 'ctest-vn-69494467', 'tenant_id': 'ee7b816e42b245a7970e169207280d2b', 'project_id': 'ee7b816e42b245a7970e169207280d2b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-62196395', 'ctest-vn-69494467'], 'port_security_enabled': True, 'description': ''}}
2025-04-24 19:33:44,307 - DEBUG - Response for create_subnet : {'subnet': {'id': '8fb08846-890c-4895-999a-080ee3f4fb07', 'name': '', 'tenant_id': 'ee7b816e42b245a7970e169207280d2b', 'network_id': 'e21f5f62-e89c-43b4-a869-be16b24b504e', 'ip_version': 4, 'cidr': '23.245.6.128/26', 'allocation_pools': [{'start': '23.245.6.130', 'end': '23.245.6.190'}], 'gateway_ip': '23.245.6.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '23.245.6.130', 'tags': [], 'project_id': 'ee7b816e42b245a7970e169207280d2b'}}
2025-04-24 19:33:44,328 - INFO - Created VN ctest-vn-69494467
2025-04-24 19:33:44,381 - DEBUG - VN ctest-vn-69494467 UUID is e21f5f62-e89c-43b4-a869-be16b24b504e
2025-04-24 19:33:44,724 - DEBUG - Response for create_network : {'network': {'id': '70e7abcc-75fd-4adb-813a-33c8f615f33f', 'name': 'ctest-vn-81008996', 'tenant_id': 'ee7b816e42b245a7970e169207280d2b', 'project_id': 'ee7b816e42b245a7970e169207280d2b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-62196395', 'ctest-vn-81008996'], 'port_security_enabled': True, 'description': ''}}
2025-04-24 19:33:44,962 - DEBUG - Response for create_subnet : {'subnet': {'id': '30ffd5bf-e934-47e3-b678-79998d217715', 'name': '', 'tenant_id': 'ee7b816e42b245a7970e169207280d2b', 'network_id': '70e7abcc-75fd-4adb-813a-33c8f615f33f', 'ip_version': 4, 'cidr': '161.253.39.192/26', 'allocation_pools': [{'start': '161.253.39.194', 'end': '161.253.39.254'}], 'gateway_ip': '161.253.39.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '161.253.39.194', 'tags': [], 'project_id': 'ee7b816e42b245a7970e169207280d2b'}}
2025-04-24 19:33:44,979 - INFO - Created VN ctest-vn-81008996
2025-04-24 19:33:45,029 - DEBUG - VN ctest-vn-81008996 UUID is 70e7abcc-75fd-4adb-813a-33c8f615f33f
2025-04-24 19:33:45,181 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-62196395:ctest-vn-69494467, 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-62196395:ctest-vn-81008996, 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-24 19:33:45,488 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e21f5f62-e89c-43b4-a869-be16b24b504e', 'name': 'ctest-vn-69494467', 'tenant_id': 'ee7b816e42b245a7970e169207280d2b', 'project_id': 'ee7b816e42b245a7970e169207280d2b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8fb08846-890c-4895-999a-080ee3f4fb07'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-62196395', 'ctest-vn-69494467'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-62196395', 'ctest-policy-allow-all-83817781']], 'subnet_ipam': [{'subnet_cidr': '23.245.6.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-24 19:33:45,727 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '70e7abcc-75fd-4adb-813a-33c8f615f33f', 'name': 'ctest-vn-81008996', 'tenant_id': 'ee7b816e42b245a7970e169207280d2b', 'project_id': 'ee7b816e42b245a7970e169207280d2b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['30ffd5bf-e934-47e3-b678-79998d217715'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-62196395', 'ctest-vn-81008996'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-62196395', 'ctest-policy-allow-all-83817781']], 'subnet_ipam': [{'subnet_cidr': '161.253.39.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-24 19:33:45,889 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-24 19:33:46,225 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-24 19:33:46,252 - DEBUG - Requesting: http://10.0.0.254:8082/domain/f9f6d5b2-4674-4c14-b2d6-6a6862386506
2025-04-24 19:33:46,265 - DEBUG - Requesting: http://10.0.0.254:8082/project/ee7b816e-42b2-45a7-970e-169207280d2b
2025-04-24 19:33:46,358 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e21f5f62-e89c-43b4-a869-be16b24b504e
2025-04-24 19:33:46,370 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e21f5f62-e89c-43b4-a869-be16b24b504e
2025-04-24 19:33:46,381 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f6381a4c-67ac-4dba-b5da-548318dac01b
2025-04-24 19:33:46,388 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f6381a4c-67ac-4dba-b5da-548318dac01b
2025-04-24 19:33:46,395 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/880bba87-0860-4377-9c91-9031e92fccc8
2025-04-24 19:33:46,402 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-24 19:33:46,402 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e21f5f62-e89c-43b4-a869-be16b24b504e
2025-04-24 19:33:46,412 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f6381a4c-67ac-4dba-b5da-548318dac01b
2025-04-24 19:33:46,427 - INFO - Verified VN network id 8 for VN e21f5f62-e89c-43b4-a869-be16b24b504e
2025-04-24 19:33:46,427 - INFO - Verifications in API Server for VN ctest-vn-69494467 passed
2025-04-24 19:33:46,427 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e21f5f62-e89c-43b4-a869-be16b24b504e
2025-04-24 19:33:46,439 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f6381a4c-67ac-4dba-b5da-548318dac01b
2025-04-24 19:33:46,446 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f6381a4c-67ac-4dba-b5da-548318dac01b
2025-04-24 19:33:46,453 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/880bba87-0860-4377-9c91-9031e92fccc8
2025-04-24 19:33:46,466 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-62196395:ctest-vn-69494467', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-62196395', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16293846855263732660', 'uuid-lslong': '12135439675616350286'}, 'enable': 'true', 'created': '2025-04-24T19:33:44', 'last-modified': '2025-04-24T19:33:45', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.002371'}
2025-04-24 19:33:46,473 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-24 19:33:46,473 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-69494467 passed
2025-04-24 19:33:46,474 - DEBUG - ====Verifying policy data for ctest-vn-69494467 in API_Server ======
2025-04-24 19:33:46,474 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-24 19:33:46,480 - DEBUG - Requesting: http://10.0.0.254:8082/domain/f9f6d5b2-4674-4c14-b2d6-6a6862386506
2025-04-24 19:33:46,492 - DEBUG - Requesting: http://10.0.0.254:8082/project/ee7b816e-42b2-45a7-970e-169207280d2b
2025-04-24 19:33:46,568 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e21f5f62-e89c-43b4-a869-be16b24b504e
2025-04-24 19:33:46,579 - DEBUG - ==>Verifying data for policy with id: 2ef14c4b-a3c3-4593-a4b9-2c92ae7e0eb5, fqn: ['default-domain', 'ctest-TestBasicPolicy-62196395', 'ctest-policy-allow-all-83817781']
2025-04-24 19:33:46,579 - INFO - VN ctest-vn-69494467 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-24 19:33:46,579 - DEBUG - Verifying the vn in opserver
2025-04-24 19:33:46,579 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-62196395:ctest-vn-69494467 virtual network link through opserver 10.0.0.254
2025-04-24 19:33:46,579 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-04-24 19:33:46,917 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-04-24 19:33:46,974 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-62196395:ctest-vn-69494467', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-62196395:ctest-vn-69494467?flat'}
2025-04-24 19:33:46,974 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-62196395:ctest-vn-69494467 is found in opserver
2025-04-24 19:33:46,985 - DEBUG - Do not have enough data to verify VN in agent
2025-04-24 19:33:46,990 - DEBUG - VRF ids for VN ctest-vn-69494467: {}
2025-04-24 19:33:46,990 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-24 19:33:46,996 - DEBUG - Requesting: http://10.0.0.254:8082/domain/f9f6d5b2-4674-4c14-b2d6-6a6862386506
2025-04-24 19:33:47,007 - DEBUG - Requesting: http://10.0.0.254:8082/project/ee7b816e-42b2-45a7-970e-169207280d2b
2025-04-24 19:33:47,083 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/70e7abcc-75fd-4adb-813a-33c8f615f33f
2025-04-24 19:33:47,096 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/70e7abcc-75fd-4adb-813a-33c8f615f33f
2025-04-24 19:33:47,107 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ba40df83-bfb2-45d8-bb09-c99be9b05ece
2025-04-24 19:33:47,115 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ba40df83-bfb2-45d8-bb09-c99be9b05ece
2025-04-24 19:33:47,122 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/51b8d7b0-1f70-4fb6-931a-d7eab5a4cf77
2025-04-24 19:33:47,129 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-24 19:33:47,129 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/70e7abcc-75fd-4adb-813a-33c8f615f33f
2025-04-24 19:33:47,138 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ba40df83-bfb2-45d8-bb09-c99be9b05ece
2025-04-24 19:33:47,152 - INFO - Verified VN network id 9 for VN 70e7abcc-75fd-4adb-813a-33c8f615f33f
2025-04-24 19:33:47,152 - INFO - Verifications in API Server for VN ctest-vn-81008996 passed
2025-04-24 19:33:47,152 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/70e7abcc-75fd-4adb-813a-33c8f615f33f
2025-04-24 19:33:47,162 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ba40df83-bfb2-45d8-bb09-c99be9b05ece
2025-04-24 19:33:47,169 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ba40df83-bfb2-45d8-bb09-c99be9b05ece
2025-04-24 19:33:47,175 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/51b8d7b0-1f70-4fb6-931a-d7eab5a4cf77
2025-04-24 19:33:47,188 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-62196395:ctest-vn-81008996', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-62196395', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8135660146509302491', 'uuid-lslong': '9311812117757031231'}, 'enable': 'true', 'created': '2025-04-24T19:33:44', 'last-modified': '2025-04-24T19:33:45', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.496263'}
2025-04-24 19:33:47,195 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-24 19:33:47,195 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-81008996 passed
2025-04-24 19:33:47,195 - DEBUG - ====Verifying policy data for ctest-vn-81008996 in API_Server ======
2025-04-24 19:33:47,195 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-24 19:33:47,200 - DEBUG - Requesting: http://10.0.0.254:8082/domain/f9f6d5b2-4674-4c14-b2d6-6a6862386506
2025-04-24 19:33:47,211 - DEBUG - Requesting: http://10.0.0.254:8082/project/ee7b816e-42b2-45a7-970e-169207280d2b
2025-04-24 19:33:47,290 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/70e7abcc-75fd-4adb-813a-33c8f615f33f
2025-04-24 19:33:47,300 - DEBUG - ==>Verifying data for policy with id: 2ef14c4b-a3c3-4593-a4b9-2c92ae7e0eb5, fqn: ['default-domain', 'ctest-TestBasicPolicy-62196395', 'ctest-policy-allow-all-83817781']
2025-04-24 19:33:47,300 - INFO - VN ctest-vn-81008996 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-24 19:33:47,300 - DEBUG - Verifying the vn in opserver
2025-04-24 19:33:47,300 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-62196395:ctest-vn-81008996 virtual network link through opserver 10.0.0.254
2025-04-24 19:33:47,301 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-04-24 19:33:47,311 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-62196395:ctest-vn-81008996', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-62196395:ctest-vn-81008996?flat'}
2025-04-24 19:33:47,311 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-62196395:ctest-vn-81008996 is found in opserver
2025-04-24 19:33:47,323 - DEBUG - Do not have enough data to verify VN in agent
2025-04-24 19:33:47,328 - DEBUG - VRF ids for VN ctest-vn-81008996: {}
2025-04-24 19:33:47,382 - DEBUG - Services list from nova: [