2025-04-25 00:26:21,391 - INFO - Domain Default found not creating
2025-04-25 00:26:21,525 - INFO - Project ctest-TestBasicPolicy-72795414 not found, creating it
2025-04-25 00:26:22,017 - INFO - Created Project:ctest-TestBasicPolicy-72795414, ID : 05fe6cce-0d44-4f2c-b116-0dbff8504709
2025-04-25 00:26:23,423 - INFO - ================================================================================
2025-04-25 00:26:23,423 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-25 00:26:23,423 - 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-25 00:26:23,678 - DEBUG - Nothing to compare xmpp stats {'10.0.0.241': {'10.20.0.254': '0'}} with
2025-04-25 00:26:23,678 - INFO - Initial checks done. Running the testcase now
2025-04-25 00:26:23,678 - INFO -
2025-04-25 00:26:24,228 - DEBUG - Response for create_network : {'network': {'id': '1e6b0f06-fa59-4584-865b-060b8e1b12d7', 'name': 'ctest-vn-20896077', 'tenant_id': '05fe6cce0d444f2cb1160dbff8504709', 'project_id': '05fe6cce0d444f2cb1160dbff8504709', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-72795414', 'ctest-vn-20896077'], 'port_security_enabled': True, 'description': ''}}
2025-04-25 00:26:24,398 - DEBUG - Response for create_subnet : {'subnet': {'id': '91af8f9a-25cd-4263-b816-e0c7651baef8', 'name': '', 'tenant_id': '05fe6cce0d444f2cb1160dbff8504709', 'network_id': '1e6b0f06-fa59-4584-865b-060b8e1b12d7', 'ip_version': 4, 'cidr': '170.13.228.64/26', 'allocation_pools': [{'start': '170.13.228.66', 'end': '170.13.228.126'}], 'gateway_ip': '170.13.228.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '170.13.228.66', 'tags': [], 'project_id': '05fe6cce0d444f2cb1160dbff8504709'}}
2025-04-25 00:26:24,415 - INFO - Created VN ctest-vn-20896077
2025-04-25 00:26:24,465 - DEBUG - VN ctest-vn-20896077 UUID is 1e6b0f06-fa59-4584-865b-060b8e1b12d7
2025-04-25 00:26:24,794 - DEBUG - Response for create_network : {'network': {'id': '2bd88b41-e571-4049-8054-5b07b700cadd', 'name': 'ctest-vn-79304549', 'tenant_id': '05fe6cce0d444f2cb1160dbff8504709', 'project_id': '05fe6cce0d444f2cb1160dbff8504709', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-72795414', 'ctest-vn-79304549'], 'port_security_enabled': True, 'description': ''}}
2025-04-25 00:26:24,943 - DEBUG - Response for create_subnet : {'subnet': {'id': '7523a89a-c946-4564-a758-36856140f2b2', 'name': '', 'tenant_id': '05fe6cce0d444f2cb1160dbff8504709', 'network_id': '2bd88b41-e571-4049-8054-5b07b700cadd', 'ip_version': 4, 'cidr': '90.153.68.0/26', 'allocation_pools': [{'start': '90.153.68.2', 'end': '90.153.68.62'}], 'gateway_ip': '90.153.68.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '90.153.68.2', 'tags': [], 'project_id': '05fe6cce0d444f2cb1160dbff8504709'}}
2025-04-25 00:26:24,963 - INFO - Created VN ctest-vn-79304549
2025-04-25 00:26:25,017 - DEBUG - VN ctest-vn-79304549 UUID is 2bd88b41-e571-4049-8054-5b07b700cadd
2025-04-25 00:26:25,241 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-72795414:ctest-vn-20896077, 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-72795414:ctest-vn-79304549, 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-25 00:26:25,530 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1e6b0f06-fa59-4584-865b-060b8e1b12d7', 'name': 'ctest-vn-20896077', 'tenant_id': '05fe6cce0d444f2cb1160dbff8504709', 'project_id': '05fe6cce0d444f2cb1160dbff8504709', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['91af8f9a-25cd-4263-b816-e0c7651baef8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-72795414', 'ctest-vn-20896077'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-72795414', 'ctest-policy-allow-all-15070647']], 'subnet_ipam': [{'subnet_cidr': '170.13.228.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-25 00:26:25,725 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2bd88b41-e571-4049-8054-5b07b700cadd', 'name': 'ctest-vn-79304549', 'tenant_id': '05fe6cce0d444f2cb1160dbff8504709', 'project_id': '05fe6cce0d444f2cb1160dbff8504709', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7523a89a-c946-4564-a758-36856140f2b2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-72795414', 'ctest-vn-79304549'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-72795414', 'ctest-policy-allow-all-15070647']], 'subnet_ipam': [{'subnet_cidr': '90.153.68.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-25 00:26:25,881 - DEBUG - Requesting: http://10.0.0.241:8082/domains
2025-04-25 00:26:26,171 - DEBUG - Requesting: http://10.0.0.241:8082/domains
2025-04-25 00:26:26,197 - DEBUG - Requesting: http://10.0.0.241:8082/domain/26e15901-b182-4546-afde-31ab87cffee7
2025-04-25 00:26:26,210 - DEBUG - Requesting: http://10.0.0.241:8082/project/05fe6cce-0d44-4f2c-b116-0dbff8504709
2025-04-25 00:26:26,288 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/1e6b0f06-fa59-4584-865b-060b8e1b12d7
2025-04-25 00:26:26,299 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/1e6b0f06-fa59-4584-865b-060b8e1b12d7
2025-04-25 00:26:26,308 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/0f82dee1-e9b4-4a6c-9b3e-cc83857f8736
2025-04-25 00:26:26,316 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/0f82dee1-e9b4-4a6c-9b3e-cc83857f8736
2025-04-25 00:26:26,324 - DEBUG - Requesting: http://10.0.0.241:8082/route-target/53f1a955-da5f-4e35-9286-b479f0b3949d
2025-04-25 00:26:26,331 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-25 00:26:26,331 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/1e6b0f06-fa59-4584-865b-060b8e1b12d7
2025-04-25 00:26:26,342 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/0f82dee1-e9b4-4a6c-9b3e-cc83857f8736
2025-04-25 00:26:26,361 - INFO - Verified VN network id 7 for VN 1e6b0f06-fa59-4584-865b-060b8e1b12d7
2025-04-25 00:26:26,361 - INFO - Verifications in API Server for VN ctest-vn-20896077 passed
2025-04-25 00:26:26,361 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/1e6b0f06-fa59-4584-865b-060b8e1b12d7
2025-04-25 00:26:26,371 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/0f82dee1-e9b4-4a6c-9b3e-cc83857f8736
2025-04-25 00:26:26,378 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/0f82dee1-e9b4-4a6c-9b3e-cc83857f8736
2025-04-25 00:26:26,384 - DEBUG - Requesting: http://10.0.0.241:8082/route-target/53f1a955-da5f-4e35-9286-b479f0b3949d
2025-04-25 00:26:26,395 - DEBUG - Control-node 10.0.0.241 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-72795414:ctest-vn-20896077', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-72795414', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2191862166290253188', 'uuid-lslong': '9681338470661558999'}, 'enable': 'true', 'created': '2025-04-25T00:26:24', 'last-modified': '2025-04-25T00:26:25', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.885219'}
2025-04-25 00:26:26,402 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-25 00:26:26,402 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-20896077 passed
2025-04-25 00:26:26,402 - DEBUG - ====Verifying policy data for ctest-vn-20896077 in API_Server ======
2025-04-25 00:26:26,402 - DEBUG - Requesting: http://10.0.0.241:8082/domains
2025-04-25 00:26:26,407 - DEBUG - Requesting: http://10.0.0.241:8082/domain/26e15901-b182-4546-afde-31ab87cffee7
2025-04-25 00:26:26,418 - DEBUG - Requesting: http://10.0.0.241:8082/project/05fe6cce-0d44-4f2c-b116-0dbff8504709
2025-04-25 00:26:26,485 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/1e6b0f06-fa59-4584-865b-060b8e1b12d7
2025-04-25 00:26:26,495 - DEBUG - ==>Verifying data for policy with id: 04be5999-e64c-4835-a58e-c49c97709dcd, fqn: ['default-domain', 'ctest-TestBasicPolicy-72795414', 'ctest-policy-allow-all-15070647']
2025-04-25 00:26:26,495 - INFO - VN ctest-vn-20896077 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-25 00:26:26,495 - DEBUG - Verifying the vn in opserver
2025-04-25 00:26:26,495 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-72795414:ctest-vn-20896077 virtual network link through opserver 10.0.0.241
2025-04-25 00:26:26,495 - DEBUG - Requesting: http://10.0.0.241:8081/analytics/uves/virtual-networks
2025-04-25 00:26:26,783 - DEBUG - Requesting: http://10.0.0.241:8081/analytics/uves/virtual-networks
2025-04-25 00:26:26,837 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-72795414:ctest-vn-20896077', 'href': 'http://10.0.0.241:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-72795414:ctest-vn-20896077?flat'}
2025-04-25 00:26:26,837 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-72795414:ctest-vn-20896077 is found in opserver
2025-04-25 00:26:26,850 - DEBUG - Do not have enough data to verify VN in agent
2025-04-25 00:26:26,856 - DEBUG - VRF ids for VN ctest-vn-20896077: {}
2025-04-25 00:26:26,856 - DEBUG - Requesting: http://10.0.0.241:8082/domains
2025-04-25 00:26:26,862 - DEBUG - Requesting: http://10.0.0.241:8082/domain/26e15901-b182-4546-afde-31ab87cffee7
2025-04-25 00:26:26,874 - DEBUG - Requesting: http://10.0.0.241:8082/project/05fe6cce-0d44-4f2c-b116-0dbff8504709
2025-04-25 00:26:26,946 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/2bd88b41-e571-4049-8054-5b07b700cadd
2025-04-25 00:26:26,961 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/2bd88b41-e571-4049-8054-5b07b700cadd
2025-04-25 00:26:26,971 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/34c9e701-21b5-48a0-83a0-73759258e84a
2025-04-25 00:26:26,981 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/34c9e701-21b5-48a0-83a0-73759258e84a
2025-04-25 00:26:26,988 - DEBUG - Requesting: http://10.0.0.241:8082/route-target/b721e84e-82f9-4f29-a4c6-d7b32ec82de8
2025-04-25 00:26:26,995 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-25 00:26:26,995 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/2bd88b41-e571-4049-8054-5b07b700cadd
2025-04-25 00:26:27,004 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/34c9e701-21b5-48a0-83a0-73759258e84a
2025-04-25 00:26:27,020 - INFO - Verified VN network id 8 for VN 2bd88b41-e571-4049-8054-5b07b700cadd
2025-04-25 00:26:27,020 - INFO - Verifications in API Server for VN ctest-vn-79304549 passed
2025-04-25 00:26:27,020 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/2bd88b41-e571-4049-8054-5b07b700cadd
2025-04-25 00:26:27,030 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/34c9e701-21b5-48a0-83a0-73759258e84a
2025-04-25 00:26:27,037 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/34c9e701-21b5-48a0-83a0-73759258e84a
2025-04-25 00:26:27,044 - DEBUG - Requesting: http://10.0.0.241:8082/route-target/b721e84e-82f9-4f29-a4c6-d7b32ec82de8
2025-04-25 00:26:27,057 - DEBUG - Control-node 10.0.0.241 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-72795414:ctest-vn-79304549', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-72795414', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3159428253738942537', 'uuid-lslong': '9247116023591652061'}, 'enable': 'true', 'created': '2025-04-25T00:26:24', 'last-modified': '2025-04-25T00:26:25', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.354972'}
2025-04-25 00:26:27,064 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-25 00:26:27,064 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-79304549 passed
2025-04-25 00:26:27,064 - DEBUG - ====Verifying policy data for ctest-vn-79304549 in API_Server ======
2025-04-25 00:26:27,065 - DEBUG - Requesting: http://10.0.0.241:8082/domains
2025-04-25 00:26:27,070 - DEBUG - Requesting: http://10.0.0.241:8082/domain/26e15901-b182-4546-afde-31ab87cffee7
2025-04-25 00:26:27,083 - DEBUG - Requesting: http://10.0.0.241:8082/project/05fe6cce-0d44-4f2c-b116-0dbff8504709
2025-04-25 00:26:27,152 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/2bd88b41-e571-4049-8054-5b07b700cadd
2025-04-25 00:26:27,162 - DEBUG - ==>Verifying data for policy with id: 04be5999-e64c-4835-a58e-c49c97709dcd, fqn: ['default-domain', 'ctest-TestBasicPolicy-72795414', 'ctest-policy-allow-all-15070647']
2025-04-25 00:26:27,162 - INFO - VN ctest-vn-79304549 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-25 00:26:27,162 - DEBUG - Verifying the vn in opserver
2025-04-25 00:26:27,162 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-72795414:ctest-vn-79304549 virtual network link through opserver 10.0.0.241
2025-04-25 00:26:27,162 - DEBUG - Requesting: http://10.0.0.241:8081/analytics/uves/virtual-networks
2025-04-25 00:26:27,173 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-72795414:ctest-vn-79304549', 'href': 'http://10.0.0.241:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-72795414:ctest-vn-79304549?flat'}
2025-04-25 00:26:27,173 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-72795414:ctest-vn-79304549 is found in opserver
2025-04-25 00:26:27,183 - DEBUG - Do not have enough data to verify VN in agent
2025-04-25 00:26:27,187 - DEBUG - VRF ids for VN ctest-vn-79304549: {}
2025-04-25 00:26:27,249 - DEBUG - Services list from nova: [