2025-07-10 02:13:07,591 - INFO - Domain Default found not creating
2025-07-10 02:13:07,762 - INFO - Project ctest-TestBasicPolicy-36399392 not found, creating it
2025-07-10 02:13:08,244 - INFO - Created Project:ctest-TestBasicPolicy-36399392, ID : 88a3d35b-2f6e-4319-a43b-86d7784e47d8
2025-07-10 02:13:09,696 - INFO - ================================================================================
2025-07-10 02:13:09,696 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-07-10 02:13:09,696 - 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-07-10 02:13:09,954 - DEBUG - Nothing to compare xmpp stats {'10.0.0.137': {'10.20.0.192': '0'}} with
2025-07-10 02:13:09,954 - INFO - Initial checks done. Running the testcase now
2025-07-10 02:13:09,955 - INFO -
2025-07-10 02:13:10,510 - DEBUG - Response for create_network : {'network': {'id': '7f001df6-9246-43bf-bb08-902b649c8b09', 'name': 'ctest-vn-87250819', 'tenant_id': '88a3d35b2f6e4319a43b86d7784e47d8', 'project_id': '88a3d35b2f6e4319a43b86d7784e47d8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-36399392', 'ctest-vn-87250819'], 'port_security_enabled': True, 'description': ''}}
2025-07-10 02:13:10,705 - DEBUG - Response for create_subnet : {'subnet': {'id': '389bde31-8d68-429b-9911-709fbc73312d', 'name': '', 'tenant_id': '88a3d35b2f6e4319a43b86d7784e47d8', 'network_id': '7f001df6-9246-43bf-bb08-902b649c8b09', 'ip_version': 4, 'cidr': '148.128.36.128/26', 'allocation_pools': [{'start': '148.128.36.130', 'end': '148.128.36.190'}], 'gateway_ip': '148.128.36.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '148.128.36.130', 'tags': [], 'project_id': '88a3d35b2f6e4319a43b86d7784e47d8'}}
2025-07-10 02:13:10,723 - INFO - Created VN ctest-vn-87250819
2025-07-10 02:13:10,777 - DEBUG - VN ctest-vn-87250819 UUID is 7f001df6-9246-43bf-bb08-902b649c8b09
2025-07-10 02:13:11,073 - DEBUG - Response for create_network : {'network': {'id': 'd26a2fa1-19db-4325-b377-86a2bacc6511', 'name': 'ctest-vn-84562307', 'tenant_id': '88a3d35b2f6e4319a43b86d7784e47d8', 'project_id': '88a3d35b2f6e4319a43b86d7784e47d8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-36399392', 'ctest-vn-84562307'], 'port_security_enabled': True, 'description': ''}}
2025-07-10 02:13:11,253 - DEBUG - Response for create_subnet : {'subnet': {'id': '5351f9e3-292e-4201-ac50-b82c88c81ac3', 'name': '', 'tenant_id': '88a3d35b2f6e4319a43b86d7784e47d8', 'network_id': 'd26a2fa1-19db-4325-b377-86a2bacc6511', 'ip_version': 4, 'cidr': '200.109.85.128/26', 'allocation_pools': [{'start': '200.109.85.130', 'end': '200.109.85.190'}], 'gateway_ip': '200.109.85.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '200.109.85.130', 'tags': [], 'project_id': '88a3d35b2f6e4319a43b86d7784e47d8'}}
2025-07-10 02:13:11,388 - INFO - Created VN ctest-vn-84562307
2025-07-10 02:13:11,441 - DEBUG - VN ctest-vn-84562307 UUID is d26a2fa1-19db-4325-b377-86a2bacc6511
2025-07-10 02:13:11,593 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-36399392:ctest-vn-87250819, 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-36399392:ctest-vn-84562307, 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-07-10 02:13:11,884 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7f001df6-9246-43bf-bb08-902b649c8b09', 'name': 'ctest-vn-87250819', 'tenant_id': '88a3d35b2f6e4319a43b86d7784e47d8', 'project_id': '88a3d35b2f6e4319a43b86d7784e47d8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['389bde31-8d68-429b-9911-709fbc73312d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-36399392', 'ctest-vn-87250819'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-36399392', 'ctest-policy-allow-all-62574435']], 'subnet_ipam': [{'subnet_cidr': '148.128.36.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-10 02:13:12,112 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd26a2fa1-19db-4325-b377-86a2bacc6511', 'name': 'ctest-vn-84562307', 'tenant_id': '88a3d35b2f6e4319a43b86d7784e47d8', 'project_id': '88a3d35b2f6e4319a43b86d7784e47d8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5351f9e3-292e-4201-ac50-b82c88c81ac3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-36399392', 'ctest-vn-84562307'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-36399392', 'ctest-policy-allow-all-62574435']], 'subnet_ipam': [{'subnet_cidr': '200.109.85.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-10 02:13:12,261 - DEBUG - Requesting: http://10.0.0.137:8082/domains
2025-07-10 02:13:12,555 - DEBUG - Requesting: http://10.0.0.137:8082/domains
2025-07-10 02:13:12,582 - DEBUG - Requesting: http://10.0.0.137:8082/domain/dc73e4c1-6b4f-4e80-9fcf-db0ebce8e0f4
2025-07-10 02:13:12,596 - DEBUG - Requesting: http://10.0.0.137:8082/project/88a3d35b-2f6e-4319-a43b-86d7784e47d8
2025-07-10 02:13:12,673 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/7f001df6-9246-43bf-bb08-902b649c8b09
2025-07-10 02:13:12,684 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/7f001df6-9246-43bf-bb08-902b649c8b09
2025-07-10 02:13:12,693 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/0e4ab509-19a1-41ec-87e3-11765870e310
2025-07-10 02:13:12,701 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/0e4ab509-19a1-41ec-87e3-11765870e310
2025-07-10 02:13:12,711 - DEBUG - Requesting: http://10.0.0.137:8082/route-target/f6cb1ded-88a6-46bc-968f-949ad1e14210
2025-07-10 02:13:12,719 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-10 02:13:12,719 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/7f001df6-9246-43bf-bb08-902b649c8b09
2025-07-10 02:13:12,729 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/0e4ab509-19a1-41ec-87e3-11765870e310
2025-07-10 02:13:12,746 - INFO - Verified VN network id 8 for VN 7f001df6-9246-43bf-bb08-902b649c8b09
2025-07-10 02:13:12,746 - INFO - Verifications in API Server for VN ctest-vn-87250819 passed
2025-07-10 02:13:12,746 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/7f001df6-9246-43bf-bb08-902b649c8b09
2025-07-10 02:13:12,758 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/0e4ab509-19a1-41ec-87e3-11765870e310
2025-07-10 02:13:12,765 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/0e4ab509-19a1-41ec-87e3-11765870e310
2025-07-10 02:13:12,773 - DEBUG - Requesting: http://10.0.0.137:8082/route-target/f6cb1ded-88a6-46bc-968f-949ad1e14210
2025-07-10 02:13:12,786 - DEBUG - Control-node 10.0.0.137 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-36399392:ctest-vn-87250819', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-36399392', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9151347387670086591', 'uuid-lslong': '13477180400952183561'}, 'enable': 'true', 'created': '2025-07-10T02:13:10', 'last-modified': '2025-07-10T02:13:11', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.927208'}
2025-07-10 02:13:12,794 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-10 02:13:12,794 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-87250819 passed
2025-07-10 02:13:12,794 - DEBUG - ====Verifying policy data for ctest-vn-87250819 in API_Server ======
2025-07-10 02:13:12,794 - DEBUG - Requesting: http://10.0.0.137:8082/domains
2025-07-10 02:13:12,801 - DEBUG - Requesting: http://10.0.0.137:8082/domain/dc73e4c1-6b4f-4e80-9fcf-db0ebce8e0f4
2025-07-10 02:13:12,813 - DEBUG - Requesting: http://10.0.0.137:8082/project/88a3d35b-2f6e-4319-a43b-86d7784e47d8
2025-07-10 02:13:12,885 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/7f001df6-9246-43bf-bb08-902b649c8b09
2025-07-10 02:13:12,896 - DEBUG - ==>Verifying data for policy with id: 58873bd9-c346-400c-9575-c58a97e279cd, fqn: ['default-domain', 'ctest-TestBasicPolicy-36399392', 'ctest-policy-allow-all-62574435']
2025-07-10 02:13:12,896 - INFO - VN ctest-vn-87250819 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-10 02:13:12,896 - DEBUG - Verifying the vn in opserver
2025-07-10 02:13:12,896 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-36399392:ctest-vn-87250819 virtual network link through opserver 10.0.0.137
2025-07-10 02:13:12,896 - DEBUG - Requesting: http://10.0.0.137:8081/analytics/uves/virtual-networks
2025-07-10 02:13:13,196 - DEBUG - Requesting: http://10.0.0.137:8081/analytics/uves/virtual-networks
2025-07-10 02:13:13,248 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-36399392:ctest-vn-87250819', 'href': 'http://10.0.0.137:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-36399392:ctest-vn-87250819?flat'}
2025-07-10 02:13:13,248 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-36399392:ctest-vn-87250819 is found in opserver
2025-07-10 02:13:13,259 - DEBUG - Do not have enough data to verify VN in agent
2025-07-10 02:13:13,264 - DEBUG - VRF ids for VN ctest-vn-87250819: {}
2025-07-10 02:13:13,264 - DEBUG - Requesting: http://10.0.0.137:8082/domains
2025-07-10 02:13:13,269 - DEBUG - Requesting: http://10.0.0.137:8082/domain/dc73e4c1-6b4f-4e80-9fcf-db0ebce8e0f4
2025-07-10 02:13:13,281 - DEBUG - Requesting: http://10.0.0.137:8082/project/88a3d35b-2f6e-4319-a43b-86d7784e47d8
2025-07-10 02:13:13,362 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/d26a2fa1-19db-4325-b377-86a2bacc6511
2025-07-10 02:13:13,374 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/d26a2fa1-19db-4325-b377-86a2bacc6511
2025-07-10 02:13:13,384 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/9968e878-be16-4ba2-937a-737d626eef81
2025-07-10 02:13:13,391 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/9968e878-be16-4ba2-937a-737d626eef81
2025-07-10 02:13:13,398 - DEBUG - Requesting: http://10.0.0.137:8082/route-target/ec9791e3-6999-497b-8a42-d77314d346a2
2025-07-10 02:13:13,405 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-10 02:13:13,405 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/d26a2fa1-19db-4325-b377-86a2bacc6511
2025-07-10 02:13:13,414 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/9968e878-be16-4ba2-937a-737d626eef81
2025-07-10 02:13:13,431 - INFO - Verified VN network id 9 for VN d26a2fa1-19db-4325-b377-86a2bacc6511
2025-07-10 02:13:13,432 - INFO - Verifications in API Server for VN ctest-vn-84562307 passed
2025-07-10 02:13:13,432 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/d26a2fa1-19db-4325-b377-86a2bacc6511
2025-07-10 02:13:13,444 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/9968e878-be16-4ba2-937a-737d626eef81
2025-07-10 02:13:13,453 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/9968e878-be16-4ba2-937a-737d626eef81
2025-07-10 02:13:13,462 - DEBUG - Requesting: http://10.0.0.137:8082/route-target/ec9791e3-6999-497b-8a42-d77314d346a2
2025-07-10 02:13:13,475 - DEBUG - Control-node 10.0.0.137 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-36399392:ctest-vn-84562307', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-36399392', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15161983464466236197', 'uuid-lslong': '12931952888494449937'}, 'enable': 'true', 'created': '2025-07-10T02:13:11', 'last-modified': '2025-07-10T02:13:12', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.381693'}
2025-07-10 02:13:13,482 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-10 02:13:13,482 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-84562307 passed
2025-07-10 02:13:13,482 - DEBUG - ====Verifying policy data for ctest-vn-84562307 in API_Server ======
2025-07-10 02:13:13,482 - DEBUG - Requesting: http://10.0.0.137:8082/domains
2025-07-10 02:13:13,488 - DEBUG - Requesting: http://10.0.0.137:8082/domain/dc73e4c1-6b4f-4e80-9fcf-db0ebce8e0f4
2025-07-10 02:13:13,500 - DEBUG - Requesting: http://10.0.0.137:8082/project/88a3d35b-2f6e-4319-a43b-86d7784e47d8
2025-07-10 02:13:13,576 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/d26a2fa1-19db-4325-b377-86a2bacc6511
2025-07-10 02:13:13,587 - DEBUG - ==>Verifying data for policy with id: 58873bd9-c346-400c-9575-c58a97e279cd, fqn: ['default-domain', 'ctest-TestBasicPolicy-36399392', 'ctest-policy-allow-all-62574435']
2025-07-10 02:13:13,587 - INFO - VN ctest-vn-84562307 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-10 02:13:13,587 - DEBUG - Verifying the vn in opserver
2025-07-10 02:13:13,587 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-36399392:ctest-vn-84562307 virtual network link through opserver 10.0.0.137
2025-07-10 02:13:13,587 - DEBUG - Requesting: http://10.0.0.137:8081/analytics/uves/virtual-networks
2025-07-10 02:13:13,598 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-36399392:ctest-vn-84562307', 'href': 'http://10.0.0.137:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-36399392:ctest-vn-84562307?flat'}
2025-07-10 02:13:13,598 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-36399392:ctest-vn-84562307 is found in opserver
2025-07-10 02:13:13,611 - DEBUG - Do not have enough data to verify VN in agent
2025-07-10 02:13:13,618 - DEBUG - VRF ids for VN ctest-vn-84562307: {}
2025-07-10 02:13:13,679 - DEBUG - Services list from nova: [