2025-01-14 08:36:55,155 - INFO - Domain Default found not creating
2025-01-14 08:36:55,957 - INFO - Project ctest-TestBasicPolicy-13068520 not found, creating it
2025-01-14 08:36:56,421 - INFO - Created Project:ctest-TestBasicPolicy-13068520, ID : e8457963-3478-4cde-97b4-591b1bbc723f
2025-01-14 08:36:57,894 - INFO - ================================================================================
2025-01-14 08:36:57,894 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-01-14 08:36:57,894 - 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-01-14 08:36:58,152 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2025-01-14 08:36:58,152 - INFO - Initial checks done. Running the testcase now
2025-01-14 08:36:58,152 - INFO -
2025-01-14 08:36:58,753 - DEBUG - Response for create_network : {'network': {'id': '36b2d1b6-775e-41ec-9fa4-aa2652774567', 'name': 'ctest-vn-35143664', 'tenant_id': 'e845796334784cde97b4591b1bbc723f', 'project_id': 'e845796334784cde97b4591b1bbc723f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-13068520', 'ctest-vn-35143664'], 'port_security_enabled': True, 'description': ''}}
2025-01-14 08:36:58,917 - DEBUG - Response for create_subnet : {'subnet': {'id': '1ce880e4-5745-4cc7-99f3-59b739f3ddc2', 'name': '', 'tenant_id': 'e845796334784cde97b4591b1bbc723f', 'network_id': '36b2d1b6-775e-41ec-9fa4-aa2652774567', 'ip_version': 4, 'cidr': '112.15.218.192/26', 'allocation_pools': [{'start': '112.15.218.194', 'end': '112.15.218.254'}], 'gateway_ip': '112.15.218.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '112.15.218.194', 'tags': [], 'project_id': 'e845796334784cde97b4591b1bbc723f'}}
2025-01-14 08:36:58,936 - INFO - Created VN ctest-vn-35143664
2025-01-14 08:36:58,989 - DEBUG - VN ctest-vn-35143664 UUID is 36b2d1b6-775e-41ec-9fa4-aa2652774567
2025-01-14 08:36:59,327 - DEBUG - Response for create_network : {'network': {'id': '6e8291bc-e6d5-4e61-bf37-8b0b13a11150', 'name': 'ctest-vn-18273319', 'tenant_id': 'e845796334784cde97b4591b1bbc723f', 'project_id': 'e845796334784cde97b4591b1bbc723f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-13068520', 'ctest-vn-18273319'], 'port_security_enabled': True, 'description': ''}}
2025-01-14 08:36:59,555 - DEBUG - Response for create_subnet : {'subnet': {'id': '0cb861aa-8712-4065-9163-89830b36bf1c', 'name': '', 'tenant_id': 'e845796334784cde97b4591b1bbc723f', 'network_id': '6e8291bc-e6d5-4e61-bf37-8b0b13a11150', 'ip_version': 4, 'cidr': '12.253.107.0/26', 'allocation_pools': [{'start': '12.253.107.2', 'end': '12.253.107.62'}], 'gateway_ip': '12.253.107.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '12.253.107.2', 'tags': [], 'project_id': 'e845796334784cde97b4591b1bbc723f'}}
2025-01-14 08:36:59,573 - INFO - Created VN ctest-vn-18273319
2025-01-14 08:36:59,625 - DEBUG - VN ctest-vn-18273319 UUID is 6e8291bc-e6d5-4e61-bf37-8b0b13a11150
2025-01-14 08:36:59,745 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-13068520:ctest-vn-35143664, 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-13068520:ctest-vn-18273319, 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-01-14 08:37:00,056 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '36b2d1b6-775e-41ec-9fa4-aa2652774567', 'name': 'ctest-vn-35143664', 'tenant_id': 'e845796334784cde97b4591b1bbc723f', 'project_id': 'e845796334784cde97b4591b1bbc723f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1ce880e4-5745-4cc7-99f3-59b739f3ddc2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-13068520', 'ctest-vn-35143664'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-13068520', 'ctest-policy-allow-all-10513805']], 'subnet_ipam': [{'subnet_cidr': '112.15.218.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-14 08:37:00,301 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6e8291bc-e6d5-4e61-bf37-8b0b13a11150', 'name': 'ctest-vn-18273319', 'tenant_id': 'e845796334784cde97b4591b1bbc723f', 'project_id': 'e845796334784cde97b4591b1bbc723f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0cb861aa-8712-4065-9163-89830b36bf1c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-13068520', 'ctest-vn-18273319'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-13068520', 'ctest-policy-allow-all-10513805']], 'subnet_ipam': [{'subnet_cidr': '12.253.107.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-14 08:37:00,461 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-01-14 08:37:00,786 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-01-14 08:37:00,823 - DEBUG - Requesting: http://10.0.0.38:8082/domain/6f88dec7-cf9e-4945-aeae-339a7fb7b6a8
2025-01-14 08:37:00,838 - DEBUG - Requesting: http://10.0.0.38:8082/project/e8457963-3478-4cde-97b4-591b1bbc723f
2025-01-14 08:37:00,919 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/36b2d1b6-775e-41ec-9fa4-aa2652774567
2025-01-14 08:37:00,931 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/36b2d1b6-775e-41ec-9fa4-aa2652774567
2025-01-14 08:37:00,942 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/532b87c9-0be1-4f0d-80ca-4b6fcc2ba949
2025-01-14 08:37:00,952 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/532b87c9-0be1-4f0d-80ca-4b6fcc2ba949
2025-01-14 08:37:00,961 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/8aab0a1c-c71b-4ddf-b83e-d770cd062fc1
2025-01-14 08:37:00,968 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-14 08:37:00,968 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/36b2d1b6-775e-41ec-9fa4-aa2652774567
2025-01-14 08:37:00,981 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/532b87c9-0be1-4f0d-80ca-4b6fcc2ba949
2025-01-14 08:37:01,003 - INFO - Verified VN network id 8 for VN 36b2d1b6-775e-41ec-9fa4-aa2652774567
2025-01-14 08:37:01,003 - INFO - Verifications in API Server for VN ctest-vn-35143664 passed
2025-01-14 08:37:01,003 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/36b2d1b6-775e-41ec-9fa4-aa2652774567
2025-01-14 08:37:01,016 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/532b87c9-0be1-4f0d-80ca-4b6fcc2ba949
2025-01-14 08:37:01,023 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/532b87c9-0be1-4f0d-80ca-4b6fcc2ba949
2025-01-14 08:37:01,031 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/8aab0a1c-c71b-4ddf-b83e-d770cd062fc1
2025-01-14 08:37:01,046 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-13068520:ctest-vn-35143664', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-13068520', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3941443205519524332', 'uuid-lslong': '11503506429780116839'}, 'enable': 'true', 'created': '2025-01-14T08:36:58', 'last-modified': '2025-01-14T08:37:00', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.022012'}
2025-01-14 08:37:01,053 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-14 08:37:01,053 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-35143664 passed
2025-01-14 08:37:01,053 - DEBUG - ====Verifying policy data for ctest-vn-35143664 in API_Server ======
2025-01-14 08:37:01,053 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-01-14 08:37:01,061 - DEBUG - Requesting: http://10.0.0.38:8082/domain/6f88dec7-cf9e-4945-aeae-339a7fb7b6a8
2025-01-14 08:37:01,073 - DEBUG - Requesting: http://10.0.0.38:8082/project/e8457963-3478-4cde-97b4-591b1bbc723f
2025-01-14 08:37:01,146 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/36b2d1b6-775e-41ec-9fa4-aa2652774567
2025-01-14 08:37:01,158 - DEBUG - ==>Verifying data for policy with id: 00c91d51-119f-4826-88ad-eb8d39a0f45d, fqn: ['default-domain', 'ctest-TestBasicPolicy-13068520', 'ctest-policy-allow-all-10513805']
2025-01-14 08:37:01,158 - INFO - VN ctest-vn-35143664 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-14 08:37:01,158 - DEBUG - Verifying the vn in opserver
2025-01-14 08:37:01,158 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-13068520:ctest-vn-35143664 virtual network link through opserver 10.0.0.38
2025-01-14 08:37:01,158 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-01-14 08:37:01,451 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-01-14 08:37:01,509 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-13068520:ctest-vn-35143664', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-13068520:ctest-vn-35143664?flat'}
2025-01-14 08:37:01,509 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-13068520:ctest-vn-35143664 is found in opserver
2025-01-14 08:37:01,521 - DEBUG - Do not have enough data to verify VN in agent
2025-01-14 08:37:01,527 - DEBUG - VRF ids for VN ctest-vn-35143664: {}
2025-01-14 08:37:01,527 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-01-14 08:37:01,533 - DEBUG - Requesting: http://10.0.0.38:8082/domain/6f88dec7-cf9e-4945-aeae-339a7fb7b6a8
2025-01-14 08:37:01,547 - DEBUG - Requesting: http://10.0.0.38:8082/project/e8457963-3478-4cde-97b4-591b1bbc723f
2025-01-14 08:37:01,626 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6e8291bc-e6d5-4e61-bf37-8b0b13a11150
2025-01-14 08:37:01,639 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6e8291bc-e6d5-4e61-bf37-8b0b13a11150
2025-01-14 08:37:01,651 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/84f705e4-82fa-4e43-9a12-db35854748f1
2025-01-14 08:37:01,661 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/84f705e4-82fa-4e43-9a12-db35854748f1
2025-01-14 08:37:01,670 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/e7a070a5-b2d8-483f-afcf-8eda73b3d4e4
2025-01-14 08:37:01,677 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-14 08:37:01,677 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6e8291bc-e6d5-4e61-bf37-8b0b13a11150
2025-01-14 08:37:01,688 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/84f705e4-82fa-4e43-9a12-db35854748f1
2025-01-14 08:37:01,705 - INFO - Verified VN network id 9 for VN 6e8291bc-e6d5-4e61-bf37-8b0b13a11150
2025-01-14 08:37:01,705 - INFO - Verifications in API Server for VN ctest-vn-18273319 passed
2025-01-14 08:37:01,705 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6e8291bc-e6d5-4e61-bf37-8b0b13a11150
2025-01-14 08:37:01,716 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/84f705e4-82fa-4e43-9a12-db35854748f1
2025-01-14 08:37:01,725 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/84f705e4-82fa-4e43-9a12-db35854748f1
2025-01-14 08:37:01,734 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/e7a070a5-b2d8-483f-afcf-8eda73b3d4e4
2025-01-14 08:37:01,749 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-13068520:ctest-vn-18273319', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-13068520', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7963087331657076321', 'uuid-lslong': '13778634464653545808'}, 'enable': 'true', 'created': '2025-01-14T08:36:59', 'last-modified': '2025-01-14T08:37:00', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.476549'}
2025-01-14 08:37:01,756 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-14 08:37:01,756 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-18273319 passed
2025-01-14 08:37:01,756 - DEBUG - ====Verifying policy data for ctest-vn-18273319 in API_Server ======
2025-01-14 08:37:01,756 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-01-14 08:37:01,762 - DEBUG - Requesting: http://10.0.0.38:8082/domain/6f88dec7-cf9e-4945-aeae-339a7fb7b6a8
2025-01-14 08:37:01,777 - DEBUG - Requesting: http://10.0.0.38:8082/project/e8457963-3478-4cde-97b4-591b1bbc723f
2025-01-14 08:37:01,850 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6e8291bc-e6d5-4e61-bf37-8b0b13a11150
2025-01-14 08:37:01,862 - DEBUG - ==>Verifying data for policy with id: 00c91d51-119f-4826-88ad-eb8d39a0f45d, fqn: ['default-domain', 'ctest-TestBasicPolicy-13068520', 'ctest-policy-allow-all-10513805']
2025-01-14 08:37:01,862 - INFO - VN ctest-vn-18273319 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-14 08:37:01,862 - DEBUG - Verifying the vn in opserver
2025-01-14 08:37:01,862 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-13068520:ctest-vn-18273319 virtual network link through opserver 10.0.0.38
2025-01-14 08:37:01,862 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-01-14 08:37:01,874 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-13068520:ctest-vn-18273319', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-13068520:ctest-vn-18273319?flat'}
2025-01-14 08:37:01,875 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-13068520:ctest-vn-18273319 is found in opserver
2025-01-14 08:37:01,887 - DEBUG - Do not have enough data to verify VN in agent
2025-01-14 08:37:01,892 - DEBUG - VRF ids for VN ctest-vn-18273319: {}
2025-01-14 08:37:01,956 - DEBUG - Services list from nova: [