2025-06-03 14:01:46,137 - INFO - Domain Default found not creating
2025-06-03 14:01:46,283 - INFO - Project ctest-TestBasicPolicy-87504819 not found, creating it
2025-06-03 14:01:46,734 - INFO - Created Project:ctest-TestBasicPolicy-87504819, ID : 8a44dea5-3c2e-43e6-b006-403783eb524a
2025-06-03 14:01:48,360 - INFO - ================================================================================
2025-06-03 14:01:48,360 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-03 14:01:48,360 - 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-06-03 14:01:48,617 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-06-03 14:01:48,617 - INFO - Initial checks done. Running the testcase now
2025-06-03 14:01:48,617 - INFO -
2025-06-03 14:01:49,203 - DEBUG - Response for create_network : {'network': {'id': '07a50942-ae70-4e9c-a55e-56c726b5946c', 'name': 'ctest-vn-54419195', 'tenant_id': '8a44dea53c2e43e6b006403783eb524a', 'project_id': '8a44dea53c2e43e6b006403783eb524a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87504819', 'ctest-vn-54419195'], 'port_security_enabled': True, 'description': ''}}
2025-06-03 14:01:49,386 - DEBUG - Response for create_subnet : {'subnet': {'id': '08795b53-8732-46a3-8b5d-cffe6a17d82f', 'name': '', 'tenant_id': '8a44dea53c2e43e6b006403783eb524a', 'network_id': '07a50942-ae70-4e9c-a55e-56c726b5946c', 'ip_version': 4, 'cidr': '112.35.212.192/26', 'allocation_pools': [{'start': '112.35.212.194', 'end': '112.35.212.254'}], 'gateway_ip': '112.35.212.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '112.35.212.194', 'tags': [], 'project_id': '8a44dea53c2e43e6b006403783eb524a'}}
2025-06-03 14:01:49,403 - INFO - Created VN ctest-vn-54419195
2025-06-03 14:01:49,455 - DEBUG - VN ctest-vn-54419195 UUID is 07a50942-ae70-4e9c-a55e-56c726b5946c
2025-06-03 14:01:49,819 - DEBUG - Response for create_network : {'network': {'id': 'c61fa2c4-4990-46c2-9382-0332556fb126', 'name': 'ctest-vn-56755448', 'tenant_id': '8a44dea53c2e43e6b006403783eb524a', 'project_id': '8a44dea53c2e43e6b006403783eb524a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87504819', 'ctest-vn-56755448'], 'port_security_enabled': True, 'description': ''}}
2025-06-03 14:01:50,022 - DEBUG - Response for create_subnet : {'subnet': {'id': '3af8f849-1bab-47d0-b48a-edb3fd11b3ca', 'name': '', 'tenant_id': '8a44dea53c2e43e6b006403783eb524a', 'network_id': 'c61fa2c4-4990-46c2-9382-0332556fb126', 'ip_version': 4, 'cidr': '195.193.27.0/26', 'allocation_pools': [{'start': '195.193.27.2', 'end': '195.193.27.62'}], 'gateway_ip': '195.193.27.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '195.193.27.2', 'tags': [], 'project_id': '8a44dea53c2e43e6b006403783eb524a'}}
2025-06-03 14:01:50,046 - INFO - Created VN ctest-vn-56755448
2025-06-03 14:01:50,103 - DEBUG - VN ctest-vn-56755448 UUID is c61fa2c4-4990-46c2-9382-0332556fb126
2025-06-03 14:01:50,221 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-87504819:ctest-vn-54419195, 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-87504819:ctest-vn-56755448, 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-06-03 14:01:50,526 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '07a50942-ae70-4e9c-a55e-56c726b5946c', 'name': 'ctest-vn-54419195', 'tenant_id': '8a44dea53c2e43e6b006403783eb524a', 'project_id': '8a44dea53c2e43e6b006403783eb524a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['08795b53-8732-46a3-8b5d-cffe6a17d82f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87504819', 'ctest-vn-54419195'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-87504819', 'ctest-policy-allow-all-82434510']], 'subnet_ipam': [{'subnet_cidr': '112.35.212.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-03 14:01:50,804 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c61fa2c4-4990-46c2-9382-0332556fb126', 'name': 'ctest-vn-56755448', 'tenant_id': '8a44dea53c2e43e6b006403783eb524a', 'project_id': '8a44dea53c2e43e6b006403783eb524a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3af8f849-1bab-47d0-b48a-edb3fd11b3ca'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87504819', 'ctest-vn-56755448'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-87504819', 'ctest-policy-allow-all-82434510']], 'subnet_ipam': [{'subnet_cidr': '195.193.27.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-03 14:01:50,959 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-03 14:01:51,305 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-03 14:01:51,336 - DEBUG - Requesting: http://10.0.0.254:8082/domain/cf666fe2-db63-4423-94eb-bae10672e136
2025-06-03 14:01:51,354 - DEBUG - Requesting: http://10.0.0.254:8082/project/8a44dea5-3c2e-43e6-b006-403783eb524a
2025-06-03 14:01:51,428 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/07a50942-ae70-4e9c-a55e-56c726b5946c
2025-06-03 14:01:51,442 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/07a50942-ae70-4e9c-a55e-56c726b5946c
2025-06-03 14:01:51,453 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/5d7cf6f4-7fa6-4475-9608-13d1a6bd039d
2025-06-03 14:01:51,462 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/5d7cf6f4-7fa6-4475-9608-13d1a6bd039d
2025-06-03 14:01:51,469 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/6713ce4c-bbb1-4b7d-8474-02f2097c4e79
2025-06-03 14:01:51,478 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-03 14:01:51,478 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/07a50942-ae70-4e9c-a55e-56c726b5946c
2025-06-03 14:01:51,488 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/5d7cf6f4-7fa6-4475-9608-13d1a6bd039d
2025-06-03 14:01:51,504 - INFO - Verified VN network id 8 for VN 07a50942-ae70-4e9c-a55e-56c726b5946c
2025-06-03 14:01:51,504 - INFO - Verifications in API Server for VN ctest-vn-54419195 passed
2025-06-03 14:01:51,504 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/07a50942-ae70-4e9c-a55e-56c726b5946c
2025-06-03 14:01:51,514 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/5d7cf6f4-7fa6-4475-9608-13d1a6bd039d
2025-06-03 14:01:51,522 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/5d7cf6f4-7fa6-4475-9608-13d1a6bd039d
2025-06-03 14:01:51,530 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/6713ce4c-bbb1-4b7d-8474-02f2097c4e79
2025-06-03 14:01:51,544 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-87504819:ctest-vn-54419195', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-87504819', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '550856711421841052', 'uuid-lslong': '11916057077416825964'}, 'enable': 'true', 'created': '2025-06-03T14:01:49', 'last-modified': '2025-06-03T14:01:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.044182'}
2025-06-03 14:01:51,551 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-03 14:01:51,551 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-54419195 passed
2025-06-03 14:01:51,552 - DEBUG - ====Verifying policy data for ctest-vn-54419195 in API_Server ======
2025-06-03 14:01:51,552 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-03 14:01:51,558 - DEBUG - Requesting: http://10.0.0.254:8082/domain/cf666fe2-db63-4423-94eb-bae10672e136
2025-06-03 14:01:51,571 - DEBUG - Requesting: http://10.0.0.254:8082/project/8a44dea5-3c2e-43e6-b006-403783eb524a
2025-06-03 14:01:51,642 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/07a50942-ae70-4e9c-a55e-56c726b5946c
2025-06-03 14:01:51,655 - DEBUG - ==>Verifying data for policy with id: 64fa6137-b77c-4a25-9c33-c75d9abee836, fqn: ['default-domain', 'ctest-TestBasicPolicy-87504819', 'ctest-policy-allow-all-82434510']
2025-06-03 14:01:51,655 - INFO - VN ctest-vn-54419195 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-03 14:01:51,655 - DEBUG - Verifying the vn in opserver
2025-06-03 14:01:51,655 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-87504819:ctest-vn-54419195 virtual network link through opserver 10.0.0.254
2025-06-03 14:01:51,655 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-06-03 14:01:51,988 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-06-03 14:01:52,048 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-87504819:ctest-vn-54419195', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-87504819:ctest-vn-54419195?flat'}
2025-06-03 14:01:52,048 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-87504819:ctest-vn-54419195 is found in opserver
2025-06-03 14:01:52,061 - DEBUG - Do not have enough data to verify VN in agent
2025-06-03 14:01:52,066 - DEBUG - VRF ids for VN ctest-vn-54419195: {}
2025-06-03 14:01:52,066 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-03 14:01:52,073 - DEBUG - Requesting: http://10.0.0.254:8082/domain/cf666fe2-db63-4423-94eb-bae10672e136
2025-06-03 14:01:52,086 - DEBUG - Requesting: http://10.0.0.254:8082/project/8a44dea5-3c2e-43e6-b006-403783eb524a
2025-06-03 14:01:52,162 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/c61fa2c4-4990-46c2-9382-0332556fb126
2025-06-03 14:01:52,176 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/c61fa2c4-4990-46c2-9382-0332556fb126
2025-06-03 14:01:52,187 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/bef83290-d7a1-444e-b8ce-68e6610f2ec9
2025-06-03 14:01:52,195 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/bef83290-d7a1-444e-b8ce-68e6610f2ec9
2025-06-03 14:01:52,203 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/9fd6de3f-d97b-4b9a-9076-2d0da045fd79
2025-06-03 14:01:52,210 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-03 14:01:52,210 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/c61fa2c4-4990-46c2-9382-0332556fb126
2025-06-03 14:01:52,220 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/bef83290-d7a1-444e-b8ce-68e6610f2ec9
2025-06-03 14:01:52,236 - INFO - Verified VN network id 9 for VN c61fa2c4-4990-46c2-9382-0332556fb126
2025-06-03 14:01:52,237 - INFO - Verifications in API Server for VN ctest-vn-56755448 passed
2025-06-03 14:01:52,237 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/c61fa2c4-4990-46c2-9382-0332556fb126
2025-06-03 14:01:52,248 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/bef83290-d7a1-444e-b8ce-68e6610f2ec9
2025-06-03 14:01:52,256 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/bef83290-d7a1-444e-b8ce-68e6610f2ec9
2025-06-03 14:01:52,264 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/9fd6de3f-d97b-4b9a-9076-2d0da045fd79
2025-06-03 14:01:52,278 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-87504819:ctest-vn-56755448', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-87504819', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14276308307719243458', 'uuid-lslong': '10629061585264423206'}, 'enable': 'true', 'created': '2025-06-03T14:01:49', 'last-modified': '2025-06-03T14:01:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.539309'}
2025-06-03 14:01:52,286 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-03 14:01:52,286 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-56755448 passed
2025-06-03 14:01:52,286 - DEBUG - ====Verifying policy data for ctest-vn-56755448 in API_Server ======
2025-06-03 14:01:52,286 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-03 14:01:52,292 - DEBUG - Requesting: http://10.0.0.254:8082/domain/cf666fe2-db63-4423-94eb-bae10672e136
2025-06-03 14:01:52,305 - DEBUG - Requesting: http://10.0.0.254:8082/project/8a44dea5-3c2e-43e6-b006-403783eb524a
2025-06-03 14:01:52,383 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/c61fa2c4-4990-46c2-9382-0332556fb126
2025-06-03 14:01:52,394 - DEBUG - ==>Verifying data for policy with id: 64fa6137-b77c-4a25-9c33-c75d9abee836, fqn: ['default-domain', 'ctest-TestBasicPolicy-87504819', 'ctest-policy-allow-all-82434510']
2025-06-03 14:01:52,394 - INFO - VN ctest-vn-56755448 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-03 14:01:52,394 - DEBUG - Verifying the vn in opserver
2025-06-03 14:01:52,394 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-87504819:ctest-vn-56755448 virtual network link through opserver 10.0.0.254
2025-06-03 14:01:52,394 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-06-03 14:01:52,406 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-87504819:ctest-vn-56755448', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-87504819:ctest-vn-56755448?flat'}
2025-06-03 14:01:52,406 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-87504819:ctest-vn-56755448 is found in opserver
2025-06-03 14:01:52,417 - DEBUG - Do not have enough data to verify VN in agent
2025-06-03 14:01:52,422 - DEBUG - VRF ids for VN ctest-vn-56755448: {}
2025-06-03 14:01:52,481 - DEBUG - Services list from nova: [