2024-11-10 11:10:00,104 - INFO - Domain Default found not creating
2024-11-10 11:10:00,319 - INFO - Project ctest-TestBasicPolicy-07991010 not found, creating it
2024-11-10 11:10:00,880 - INFO - Created Project:ctest-TestBasicPolicy-07991010, ID : 53e58c81-0994-4998-8118-ce2a49dd8d48
2024-11-10 11:10:02,571 - INFO - ================================================================================
2024-11-10 11:10:02,571 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-11-10 11:10:02,571 - 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
2024-11-10 11:10:02,834 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.17': '0'}} with
2024-11-10 11:10:02,834 - INFO - Initial checks done. Running the testcase now
2024-11-10 11:10:02,834 - INFO -
2024-11-10 11:10:03,648 - DEBUG - Response for create_network : {'network': {'id': 'b04ab01c-6b46-41aa-9195-b1335a4f3dfe', 'name': 'ctest-vn-35757082', 'tenant_id': '53e58c81099449988118ce2a49dd8d48', 'project_id': '53e58c81099449988118ce2a49dd8d48', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-07991010', 'ctest-vn-35757082'], 'port_security_enabled': True, 'description': ''}}
2024-11-10 11:10:03,832 - DEBUG - Response for create_subnet : {'subnet': {'id': '1536afdc-bec3-4bb5-9417-e497f37121cc', 'name': '', 'tenant_id': '53e58c81099449988118ce2a49dd8d48', 'network_id': 'b04ab01c-6b46-41aa-9195-b1335a4f3dfe', 'ip_version': 4, 'cidr': '143.229.147.128/26', 'allocation_pools': [{'start': '143.229.147.130', 'end': '143.229.147.190'}], 'gateway_ip': '143.229.147.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '143.229.147.130', 'tags': [], 'project_id': '53e58c81099449988118ce2a49dd8d48'}}
2024-11-10 11:10:03,856 - INFO - Created VN ctest-vn-35757082
2024-11-10 11:10:03,914 - DEBUG - VN ctest-vn-35757082 UUID is b04ab01c-6b46-41aa-9195-b1335a4f3dfe
2024-11-10 11:10:04,291 - DEBUG - Response for create_network : {'network': {'id': '07afc4ec-145b-466c-85b8-b46935fbac85', 'name': 'ctest-vn-69045836', 'tenant_id': '53e58c81099449988118ce2a49dd8d48', 'project_id': '53e58c81099449988118ce2a49dd8d48', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-07991010', 'ctest-vn-69045836'], 'port_security_enabled': True, 'description': ''}}
2024-11-10 11:10:04,509 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fe59cf0a-ce5c-40c9-8ea3-c20683841a0a', 'name': '', 'tenant_id': '53e58c81099449988118ce2a49dd8d48', 'network_id': '07afc4ec-145b-466c-85b8-b46935fbac85', 'ip_version': 4, 'cidr': '148.234.143.128/26', 'allocation_pools': [{'start': '148.234.143.130', 'end': '148.234.143.190'}], 'gateway_ip': '148.234.143.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '148.234.143.130', 'tags': [], 'project_id': '53e58c81099449988118ce2a49dd8d48'}}
2024-11-10 11:10:04,533 - INFO - Created VN ctest-vn-69045836
2024-11-10 11:10:04,594 - DEBUG - VN ctest-vn-69045836 UUID is 07afc4ec-145b-466c-85b8-b46935fbac85
2024-11-10 11:10:04,732 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-07991010:ctest-vn-35757082, 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-07991010:ctest-vn-69045836, 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]
2024-11-10 11:10:05,087 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b04ab01c-6b46-41aa-9195-b1335a4f3dfe', 'name': 'ctest-vn-35757082', 'tenant_id': '53e58c81099449988118ce2a49dd8d48', 'project_id': '53e58c81099449988118ce2a49dd8d48', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1536afdc-bec3-4bb5-9417-e497f37121cc'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-07991010', 'ctest-vn-35757082'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-07991010', 'ctest-policy-allow-all-66117846']], 'subnet_ipam': [{'subnet_cidr': '143.229.147.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-10 11:10:05,413 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '07afc4ec-145b-466c-85b8-b46935fbac85', 'name': 'ctest-vn-69045836', 'tenant_id': '53e58c81099449988118ce2a49dd8d48', 'project_id': '53e58c81099449988118ce2a49dd8d48', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['fe59cf0a-ce5c-40c9-8ea3-c20683841a0a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-07991010', 'ctest-vn-69045836'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-07991010', 'ctest-policy-allow-all-66117846']], 'subnet_ipam': [{'subnet_cidr': '148.234.143.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-10 11:10:05,575 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2024-11-10 11:10:05,883 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2024-11-10 11:10:05,925 - DEBUG - Requesting: http://10.0.0.27:8082/domain/67394b07-c747-49f1-89cd-fa2831cdc06c
2024-11-10 11:10:05,944 - DEBUG - Requesting: http://10.0.0.27:8082/project/53e58c81-0994-4998-8118-ce2a49dd8d48
2024-11-10 11:10:06,037 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/b04ab01c-6b46-41aa-9195-b1335a4f3dfe
2024-11-10 11:10:06,055 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/b04ab01c-6b46-41aa-9195-b1335a4f3dfe
2024-11-10 11:10:06,076 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/d1bb56f3-1554-4197-96c1-3e3fa4a97dc3
2024-11-10 11:10:06,089 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/d1bb56f3-1554-4197-96c1-3e3fa4a97dc3
2024-11-10 11:10:06,103 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/c2263a89-4f88-45ea-8741-4fdc119834b6
2024-11-10 11:10:06,114 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-10 11:10:06,114 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/b04ab01c-6b46-41aa-9195-b1335a4f3dfe
2024-11-10 11:10:06,133 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/d1bb56f3-1554-4197-96c1-3e3fa4a97dc3
2024-11-10 11:10:06,158 - INFO - Verified VN network id 8 for VN b04ab01c-6b46-41aa-9195-b1335a4f3dfe
2024-11-10 11:10:06,158 - INFO - Verifications in API Server for VN ctest-vn-35757082 passed
2024-11-10 11:10:06,159 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/b04ab01c-6b46-41aa-9195-b1335a4f3dfe
2024-11-10 11:10:06,176 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/d1bb56f3-1554-4197-96c1-3e3fa4a97dc3
2024-11-10 11:10:06,187 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/d1bb56f3-1554-4197-96c1-3e3fa4a97dc3
2024-11-10 11:10:06,198 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/c2263a89-4f88-45ea-8741-4fdc119834b6
2024-11-10 11:10:06,215 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-07991010:ctest-vn-35757082', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-07991010', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12703159335057244586', 'uuid-lslong': '10490485741146029566'}, 'enable': 'true', 'created': '2024-11-10T11:10:03', 'last-modified': '2024-11-10T11:10:05', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.158903'}
2024-11-10 11:10:06,222 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-10 11:10:06,222 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-35757082 passed
2024-11-10 11:10:06,223 - DEBUG - ====Verifying policy data for ctest-vn-35757082 in API_Server ======
2024-11-10 11:10:06,223 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2024-11-10 11:10:06,230 - DEBUG - Requesting: http://10.0.0.27:8082/domain/67394b07-c747-49f1-89cd-fa2831cdc06c
2024-11-10 11:10:06,246 - DEBUG - Requesting: http://10.0.0.27:8082/project/53e58c81-0994-4998-8118-ce2a49dd8d48
2024-11-10 11:10:06,342 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/b04ab01c-6b46-41aa-9195-b1335a4f3dfe
2024-11-10 11:10:06,361 - DEBUG - ==>Verifying data for policy with id: c95a44d8-bc7f-4e4f-82e1-149fc9024ef4, fqn: ['default-domain', 'ctest-TestBasicPolicy-07991010', 'ctest-policy-allow-all-66117846']
2024-11-10 11:10:06,361 - INFO - VN ctest-vn-35757082 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-10 11:10:06,361 - DEBUG - Verifying the vn in opserver
2024-11-10 11:10:06,362 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-07991010:ctest-vn-35757082 virtual network link through opserver 10.0.0.27
2024-11-10 11:10:06,362 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2024-11-10 11:10:06,668 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2024-11-10 11:10:06,745 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-07991010:ctest-vn-35757082', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-07991010:ctest-vn-35757082?flat'}
2024-11-10 11:10:06,745 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-07991010:ctest-vn-35757082 is found in opserver
2024-11-10 11:10:06,758 - DEBUG - Do not have enough data to verify VN in agent
2024-11-10 11:10:06,765 - DEBUG - VRF ids for VN ctest-vn-35757082: {}
2024-11-10 11:10:06,765 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2024-11-10 11:10:06,772 - DEBUG - Requesting: http://10.0.0.27:8082/domain/67394b07-c747-49f1-89cd-fa2831cdc06c
2024-11-10 11:10:06,788 - DEBUG - Requesting: http://10.0.0.27:8082/project/53e58c81-0994-4998-8118-ce2a49dd8d48
2024-11-10 11:10:06,878 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/07afc4ec-145b-466c-85b8-b46935fbac85
2024-11-10 11:10:06,898 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/07afc4ec-145b-466c-85b8-b46935fbac85
2024-11-10 11:10:06,914 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/af518deb-bd58-4db4-a12b-c0406eca429d
2024-11-10 11:10:06,925 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/af518deb-bd58-4db4-a12b-c0406eca429d
2024-11-10 11:10:06,935 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/592749ae-d90d-44d1-8ff0-9380918b2bc7
2024-11-10 11:10:06,943 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-10 11:10:06,943 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/07afc4ec-145b-466c-85b8-b46935fbac85
2024-11-10 11:10:06,958 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/af518deb-bd58-4db4-a12b-c0406eca429d
2024-11-10 11:10:06,985 - INFO - Verified VN network id 9 for VN 07afc4ec-145b-466c-85b8-b46935fbac85
2024-11-10 11:10:06,985 - INFO - Verifications in API Server for VN ctest-vn-69045836 passed
2024-11-10 11:10:06,985 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/07afc4ec-145b-466c-85b8-b46935fbac85
2024-11-10 11:10:07,001 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/af518deb-bd58-4db4-a12b-c0406eca429d
2024-11-10 11:10:07,011 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/af518deb-bd58-4db4-a12b-c0406eca429d
2024-11-10 11:10:07,022 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/592749ae-d90d-44d1-8ff0-9380918b2bc7
2024-11-10 11:10:07,037 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-07991010:ctest-vn-69045836', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-07991010', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '553877797422712428', 'uuid-lslong': '9635649766729428101'}, 'enable': 'true', 'created': '2024-11-10T11:10:04', 'last-modified': '2024-11-10T11:10:05', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.701420'}
2024-11-10 11:10:07,044 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-10 11:10:07,044 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-69045836 passed
2024-11-10 11:10:07,045 - DEBUG - ====Verifying policy data for ctest-vn-69045836 in API_Server ======
2024-11-10 11:10:07,045 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2024-11-10 11:10:07,052 - DEBUG - Requesting: http://10.0.0.27:8082/domain/67394b07-c747-49f1-89cd-fa2831cdc06c
2024-11-10 11:10:07,067 - DEBUG - Requesting: http://10.0.0.27:8082/project/53e58c81-0994-4998-8118-ce2a49dd8d48
2024-11-10 11:10:07,152 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/07afc4ec-145b-466c-85b8-b46935fbac85
2024-11-10 11:10:07,168 - DEBUG - ==>Verifying data for policy with id: c95a44d8-bc7f-4e4f-82e1-149fc9024ef4, fqn: ['default-domain', 'ctest-TestBasicPolicy-07991010', 'ctest-policy-allow-all-66117846']
2024-11-10 11:10:07,168 - INFO - VN ctest-vn-69045836 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-10 11:10:07,169 - DEBUG - Verifying the vn in opserver
2024-11-10 11:10:07,169 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-07991010:ctest-vn-69045836 virtual network link through opserver 10.0.0.27
2024-11-10 11:10:07,169 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2024-11-10 11:10:07,182 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-07991010:ctest-vn-69045836', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-07991010:ctest-vn-69045836?flat'}
2024-11-10 11:10:07,182 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-07991010:ctest-vn-69045836 is found in opserver
2024-11-10 11:10:07,194 - DEBUG - Do not have enough data to verify VN in agent
2024-11-10 11:10:07,201 - DEBUG - VRF ids for VN ctest-vn-69045836: {}
2024-11-10 11:10:07,274 - DEBUG - Services list from nova: [