2024-11-03 20:13:36,042 - INFO - Domain Default found not creating
2024-11-03 20:13:36,252 - INFO - Project ctest-TestBasicPolicy-44327286 not found, creating it
2024-11-03 20:13:36,778 - INFO - Created Project:ctest-TestBasicPolicy-44327286, ID : 1e778f97-d1e7-4106-99bc-963d4134a6e0
2024-11-03 20:13:38,571 - INFO - ================================================================================
2024-11-03 20:13:38,572 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-11-03 20:13:38,572 - 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-03 20:13:38,844 - DEBUG - Nothing to compare xmpp stats {'10.0.0.34': {'10.20.0.5': '0'}} with
2024-11-03 20:13:38,844 - INFO - Initial checks done. Running the testcase now
2024-11-03 20:13:38,844 - INFO -
2024-11-03 20:13:39,530 - DEBUG - Response for create_network : {'network': {'id': 'aebbe29c-d396-4e80-a9f4-8e2e9e3b84be', 'name': 'ctest-vn-09992360', 'tenant_id': '1e778f97d1e7410699bc963d4134a6e0', 'project_id': '1e778f97d1e7410699bc963d4134a6e0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-44327286', 'ctest-vn-09992360'], 'port_security_enabled': True, 'description': ''}}
2024-11-03 20:13:39,725 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a66d9596-286d-4f02-bdbd-a92d0312918e', 'name': '', 'tenant_id': '1e778f97d1e7410699bc963d4134a6e0', 'network_id': 'aebbe29c-d396-4e80-a9f4-8e2e9e3b84be', 'ip_version': 4, 'cidr': '160.65.63.128/26', 'allocation_pools': [{'start': '160.65.63.130', 'end': '160.65.63.190'}], 'gateway_ip': '160.65.63.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '160.65.63.130', 'tags': [], 'project_id': '1e778f97d1e7410699bc963d4134a6e0'}}
2024-11-03 20:13:39,752 - INFO - Created VN ctest-vn-09992360
2024-11-03 20:13:39,814 - DEBUG - VN ctest-vn-09992360 UUID is aebbe29c-d396-4e80-a9f4-8e2e9e3b84be
2024-11-03 20:13:40,181 - DEBUG - Response for create_network : {'network': {'id': '8bb22a80-f346-4fa6-b564-5231e88f3ce9', 'name': 'ctest-vn-62486797', 'tenant_id': '1e778f97d1e7410699bc963d4134a6e0', 'project_id': '1e778f97d1e7410699bc963d4134a6e0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-44327286', 'ctest-vn-62486797'], 'port_security_enabled': True, 'description': ''}}
2024-11-03 20:13:40,406 - DEBUG - Response for create_subnet : {'subnet': {'id': '78e2def5-eb79-423b-be7a-73ad249bfa85', 'name': '', 'tenant_id': '1e778f97d1e7410699bc963d4134a6e0', 'network_id': '8bb22a80-f346-4fa6-b564-5231e88f3ce9', 'ip_version': 4, 'cidr': '59.111.140.128/26', 'allocation_pools': [{'start': '59.111.140.130', 'end': '59.111.140.190'}], 'gateway_ip': '59.111.140.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '59.111.140.130', 'tags': [], 'project_id': '1e778f97d1e7410699bc963d4134a6e0'}}
2024-11-03 20:13:40,432 - INFO - Created VN ctest-vn-62486797
2024-11-03 20:13:40,498 - DEBUG - VN ctest-vn-62486797 UUID is 8bb22a80-f346-4fa6-b564-5231e88f3ce9
2024-11-03 20:13:40,638 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-44327286:ctest-vn-09992360, 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-44327286:ctest-vn-62486797, 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-03 20:13:40,983 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'aebbe29c-d396-4e80-a9f4-8e2e9e3b84be', 'name': 'ctest-vn-09992360', 'tenant_id': '1e778f97d1e7410699bc963d4134a6e0', 'project_id': '1e778f97d1e7410699bc963d4134a6e0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a66d9596-286d-4f02-bdbd-a92d0312918e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-44327286', 'ctest-vn-09992360'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-44327286', 'ctest-policy-allow-all-74984897']], 'subnet_ipam': [{'subnet_cidr': '160.65.63.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-03 20:13:41,241 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8bb22a80-f346-4fa6-b564-5231e88f3ce9', 'name': 'ctest-vn-62486797', 'tenant_id': '1e778f97d1e7410699bc963d4134a6e0', 'project_id': '1e778f97d1e7410699bc963d4134a6e0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['78e2def5-eb79-423b-be7a-73ad249bfa85'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-44327286', 'ctest-vn-62486797'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-44327286', 'ctest-policy-allow-all-74984897']], 'subnet_ipam': [{'subnet_cidr': '59.111.140.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-03 20:13:41,414 - DEBUG - Requesting: http://10.0.0.34:8082/domains
2024-11-03 20:13:41,760 - DEBUG - Requesting: http://10.0.0.34:8082/domains
2024-11-03 20:13:41,797 - DEBUG - Requesting: http://10.0.0.34:8082/domain/d5d79ce6-1888-4d79-8698-cb46f7b3524e
2024-11-03 20:13:41,816 - DEBUG - Requesting: http://10.0.0.34:8082/project/1e778f97-d1e7-4106-99bc-963d4134a6e0
2024-11-03 20:13:41,912 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/aebbe29c-d396-4e80-a9f4-8e2e9e3b84be
2024-11-03 20:13:41,929 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/aebbe29c-d396-4e80-a9f4-8e2e9e3b84be
2024-11-03 20:13:41,944 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/35acbb28-a60f-4248-a409-40ee6f75c293
2024-11-03 20:13:41,953 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/35acbb28-a60f-4248-a409-40ee6f75c293
2024-11-03 20:13:41,962 - DEBUG - Requesting: http://10.0.0.34:8082/route-target/6f84cc2b-bf29-4651-86e2-baf204f050d7
2024-11-03 20:13:41,970 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-03 20:13:41,970 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/aebbe29c-d396-4e80-a9f4-8e2e9e3b84be
2024-11-03 20:13:41,986 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/35acbb28-a60f-4248-a409-40ee6f75c293
2024-11-03 20:13:42,010 - INFO - Verified VN network id 7 for VN aebbe29c-d396-4e80-a9f4-8e2e9e3b84be
2024-11-03 20:13:42,013 - INFO - Verifications in API Server for VN ctest-vn-09992360 passed
2024-11-03 20:13:42,013 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/aebbe29c-d396-4e80-a9f4-8e2e9e3b84be
2024-11-03 20:13:42,029 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/35acbb28-a60f-4248-a409-40ee6f75c293
2024-11-03 20:13:42,041 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/35acbb28-a60f-4248-a409-40ee6f75c293
2024-11-03 20:13:42,053 - DEBUG - Requesting: http://10.0.0.34:8082/route-target/6f84cc2b-bf29-4651-86e2-baf204f050d7
2024-11-03 20:13:42,069 - DEBUG - Control-node 10.0.0.34 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-44327286:ctest-vn-09992360', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-44327286', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12590906346436972160', 'uuid-lslong': '12246569617601561790'}, 'enable': 'true', 'created': '2024-11-03T20:13:39', 'last-modified': '2024-11-03T20:13:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.115028'}
2024-11-03 20:13:42,076 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-03 20:13:42,076 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-09992360 passed
2024-11-03 20:13:42,077 - DEBUG - ====Verifying policy data for ctest-vn-09992360 in API_Server ======
2024-11-03 20:13:42,077 - DEBUG - Requesting: http://10.0.0.34:8082/domains
2024-11-03 20:13:42,084 - DEBUG - Requesting: http://10.0.0.34:8082/domain/d5d79ce6-1888-4d79-8698-cb46f7b3524e
2024-11-03 20:13:42,101 - DEBUG - Requesting: http://10.0.0.34:8082/project/1e778f97-d1e7-4106-99bc-963d4134a6e0
2024-11-03 20:13:42,185 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/aebbe29c-d396-4e80-a9f4-8e2e9e3b84be
2024-11-03 20:13:42,202 - DEBUG - ==>Verifying data for policy with id: 30eb9f16-0147-466e-8323-b538996818df, fqn: ['default-domain', 'ctest-TestBasicPolicy-44327286', 'ctest-policy-allow-all-74984897']
2024-11-03 20:13:42,202 - INFO - VN ctest-vn-09992360 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-03 20:13:42,202 - DEBUG - Verifying the vn in opserver
2024-11-03 20:13:42,202 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-44327286:ctest-vn-09992360 virtual network link through opserver 10.0.0.34
2024-11-03 20:13:42,202 - DEBUG - Requesting: http://10.0.0.34:8081/analytics/uves/virtual-networks
2024-11-03 20:13:42,547 - DEBUG - Requesting: http://10.0.0.34:8081/analytics/uves/virtual-networks
2024-11-03 20:13:42,640 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-44327286:ctest-vn-09992360', 'href': 'http://10.0.0.34:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-44327286:ctest-vn-09992360?flat'}
2024-11-03 20:13:42,640 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-44327286:ctest-vn-09992360 is found in opserver
2024-11-03 20:13:42,654 - DEBUG - Do not have enough data to verify VN in agent
2024-11-03 20:13:42,660 - DEBUG - VRF ids for VN ctest-vn-09992360: {}
2024-11-03 20:13:42,660 - DEBUG - Requesting: http://10.0.0.34:8082/domains
2024-11-03 20:13:42,670 - DEBUG - Requesting: http://10.0.0.34:8082/domain/d5d79ce6-1888-4d79-8698-cb46f7b3524e
2024-11-03 20:13:42,697 - DEBUG - Requesting: http://10.0.0.34:8082/project/1e778f97-d1e7-4106-99bc-963d4134a6e0
2024-11-03 20:13:42,783 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/8bb22a80-f346-4fa6-b564-5231e88f3ce9
2024-11-03 20:13:42,804 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/8bb22a80-f346-4fa6-b564-5231e88f3ce9
2024-11-03 20:13:42,819 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/40350592-978a-444c-be61-62a08e2a5a0d
2024-11-03 20:13:42,830 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/40350592-978a-444c-be61-62a08e2a5a0d
2024-11-03 20:13:42,840 - DEBUG - Requesting: http://10.0.0.34:8082/route-target/f332af67-8c1d-4c15-93ae-67e23a8f2e3d
2024-11-03 20:13:42,849 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-03 20:13:42,849 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/8bb22a80-f346-4fa6-b564-5231e88f3ce9
2024-11-03 20:13:42,868 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/40350592-978a-444c-be61-62a08e2a5a0d
2024-11-03 20:13:42,897 - INFO - Verified VN network id 8 for VN 8bb22a80-f346-4fa6-b564-5231e88f3ce9
2024-11-03 20:13:42,898 - INFO - Verifications in API Server for VN ctest-vn-62486797 passed
2024-11-03 20:13:42,898 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/8bb22a80-f346-4fa6-b564-5231e88f3ce9
2024-11-03 20:13:42,916 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/40350592-978a-444c-be61-62a08e2a5a0d
2024-11-03 20:13:42,927 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/40350592-978a-444c-be61-62a08e2a5a0d
2024-11-03 20:13:42,937 - DEBUG - Requesting: http://10.0.0.34:8082/route-target/f332af67-8c1d-4c15-93ae-67e23a8f2e3d
2024-11-03 20:13:42,951 - DEBUG - Control-node 10.0.0.34 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-44327286:ctest-vn-62486797', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-44327286', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10066154850452131750', 'uuid-lslong': '13070662392844598505'}, 'enable': 'true', 'created': '2024-11-03T20:13:40', 'last-modified': '2024-11-03T20:13:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.742871'}
2024-11-03 20:13:42,959 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-03 20:13:42,959 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-62486797 passed
2024-11-03 20:13:42,959 - DEBUG - ====Verifying policy data for ctest-vn-62486797 in API_Server ======
2024-11-03 20:13:42,959 - DEBUG - Requesting: http://10.0.0.34:8082/domains
2024-11-03 20:13:42,965 - DEBUG - Requesting: http://10.0.0.34:8082/domain/d5d79ce6-1888-4d79-8698-cb46f7b3524e
2024-11-03 20:13:42,980 - DEBUG - Requesting: http://10.0.0.34:8082/project/1e778f97-d1e7-4106-99bc-963d4134a6e0
2024-11-03 20:13:43,066 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/8bb22a80-f346-4fa6-b564-5231e88f3ce9
2024-11-03 20:13:43,084 - DEBUG - ==>Verifying data for policy with id: 30eb9f16-0147-466e-8323-b538996818df, fqn: ['default-domain', 'ctest-TestBasicPolicy-44327286', 'ctest-policy-allow-all-74984897']
2024-11-03 20:13:43,084 - INFO - VN ctest-vn-62486797 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-03 20:13:43,084 - DEBUG - Verifying the vn in opserver
2024-11-03 20:13:43,084 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-44327286:ctest-vn-62486797 virtual network link through opserver 10.0.0.34
2024-11-03 20:13:43,084 - DEBUG - Requesting: http://10.0.0.34:8081/analytics/uves/virtual-networks
2024-11-03 20:13:43,097 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-44327286:ctest-vn-62486797', 'href': 'http://10.0.0.34:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-44327286:ctest-vn-62486797?flat'}
2024-11-03 20:13:43,097 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-44327286:ctest-vn-62486797 is found in opserver
2024-11-03 20:13:43,109 - DEBUG - Do not have enough data to verify VN in agent
2024-11-03 20:13:43,114 - DEBUG - VRF ids for VN ctest-vn-62486797: {}
2024-11-03 20:13:43,173 - DEBUG - Services list from nova: [