2024-11-07 06:57:00,691 - INFO - Domain Default found not creating
2024-11-07 06:57:00,853 - INFO - Project ctest-TestBasicPolicy-04026526 not found, creating it
2024-11-07 06:57:01,341 - INFO - Created Project:ctest-TestBasicPolicy-04026526, ID : 8d5df382-2b01-4698-a6a1-c346ae0ffff1
2024-11-07 06:57:02,801 - INFO - ================================================================================
2024-11-07 06:57:02,801 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-11-07 06:57:02,802 - 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-07 06:57:03,057 - DEBUG - Nothing to compare xmpp stats {'10.0.0.29': {'10.20.0.14': '0'}} with
2024-11-07 06:57:03,058 - INFO - Initial checks done. Running the testcase now
2024-11-07 06:57:03,058 - INFO -
2024-11-07 06:57:03,616 - DEBUG - Response for create_network : {'network': {'id': '7afe9bc6-7152-482b-9ae8-62e52110a391', 'name': 'ctest-vn-25775652', 'tenant_id': '8d5df3822b014698a6a1c346ae0ffff1', 'project_id': '8d5df3822b014698a6a1c346ae0ffff1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04026526', 'ctest-vn-25775652'], 'port_security_enabled': True, 'description': ''}}
2024-11-07 06:57:03,786 - DEBUG - Response for create_subnet : {'subnet': {'id': '3fb487f2-9632-418e-8fc7-a3f9a1d34b11', 'name': '', 'tenant_id': '8d5df3822b014698a6a1c346ae0ffff1', 'network_id': '7afe9bc6-7152-482b-9ae8-62e52110a391', 'ip_version': 4, 'cidr': '141.39.104.192/26', 'allocation_pools': [{'start': '141.39.104.194', 'end': '141.39.104.254'}], 'gateway_ip': '141.39.104.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '141.39.104.194', 'tags': [], 'project_id': '8d5df3822b014698a6a1c346ae0ffff1'}}
2024-11-07 06:57:03,804 - INFO - Created VN ctest-vn-25775652
2024-11-07 06:57:03,860 - DEBUG - VN ctest-vn-25775652 UUID is 7afe9bc6-7152-482b-9ae8-62e52110a391
2024-11-07 06:57:04,178 - DEBUG - Response for create_network : {'network': {'id': '5503d6ed-4290-4ab6-bff3-59452f8bf088', 'name': 'ctest-vn-03286335', 'tenant_id': '8d5df3822b014698a6a1c346ae0ffff1', 'project_id': '8d5df3822b014698a6a1c346ae0ffff1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04026526', 'ctest-vn-03286335'], 'port_security_enabled': True, 'description': ''}}
2024-11-07 06:57:04,384 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a455b59d-58f8-46b4-b750-cb7089b43a41', 'name': '', 'tenant_id': '8d5df3822b014698a6a1c346ae0ffff1', 'network_id': '5503d6ed-4290-4ab6-bff3-59452f8bf088', 'ip_version': 4, 'cidr': '11.48.36.64/26', 'allocation_pools': [{'start': '11.48.36.66', 'end': '11.48.36.126'}], 'gateway_ip': '11.48.36.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '11.48.36.66', 'tags': [], 'project_id': '8d5df3822b014698a6a1c346ae0ffff1'}}
2024-11-07 06:57:04,406 - INFO - Created VN ctest-vn-03286335
2024-11-07 06:57:04,464 - DEBUG - VN ctest-vn-03286335 UUID is 5503d6ed-4290-4ab6-bff3-59452f8bf088
2024-11-07 06:57:04,589 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-04026526:ctest-vn-25775652, 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-04026526:ctest-vn-03286335, 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-07 06:57:04,899 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7afe9bc6-7152-482b-9ae8-62e52110a391', 'name': 'ctest-vn-25775652', 'tenant_id': '8d5df3822b014698a6a1c346ae0ffff1', 'project_id': '8d5df3822b014698a6a1c346ae0ffff1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3fb487f2-9632-418e-8fc7-a3f9a1d34b11'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04026526', 'ctest-vn-25775652'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-04026526', 'ctest-policy-allow-all-60884933']], 'subnet_ipam': [{'subnet_cidr': '141.39.104.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-07 06:57:05,087 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5503d6ed-4290-4ab6-bff3-59452f8bf088', 'name': 'ctest-vn-03286335', 'tenant_id': '8d5df3822b014698a6a1c346ae0ffff1', 'project_id': '8d5df3822b014698a6a1c346ae0ffff1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a455b59d-58f8-46b4-b750-cb7089b43a41'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04026526', 'ctest-vn-03286335'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-04026526', 'ctest-policy-allow-all-60884933']], 'subnet_ipam': [{'subnet_cidr': '11.48.36.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-07 06:57:05,264 - DEBUG - Requesting: http://10.0.0.29:8082/domains
2024-11-07 06:57:05,557 - DEBUG - Requesting: http://10.0.0.29:8082/domains
2024-11-07 06:57:05,587 - DEBUG - Requesting: http://10.0.0.29:8082/domain/4b532f27-e9d0-42ad-8618-92fdbd522c96
2024-11-07 06:57:05,604 - DEBUG - Requesting: http://10.0.0.29:8082/project/8d5df382-2b01-4698-a6a1-c346ae0ffff1
2024-11-07 06:57:05,687 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/7afe9bc6-7152-482b-9ae8-62e52110a391
2024-11-07 06:57:05,702 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/7afe9bc6-7152-482b-9ae8-62e52110a391
2024-11-07 06:57:05,717 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/2717e388-5174-40d5-8bee-8d001a0f840e
2024-11-07 06:57:05,725 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/2717e388-5174-40d5-8bee-8d001a0f840e
2024-11-07 06:57:05,733 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/8fa78331-6912-4a7c-8f4b-64c355c9b051
2024-11-07 06:57:05,740 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-07 06:57:05,740 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/7afe9bc6-7152-482b-9ae8-62e52110a391
2024-11-07 06:57:05,752 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/2717e388-5174-40d5-8bee-8d001a0f840e
2024-11-07 06:57:05,771 - INFO - Verified VN network id 9 for VN 7afe9bc6-7152-482b-9ae8-62e52110a391
2024-11-07 06:57:05,771 - INFO - Verifications in API Server for VN ctest-vn-25775652 passed
2024-11-07 06:57:05,771 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/7afe9bc6-7152-482b-9ae8-62e52110a391
2024-11-07 06:57:05,784 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/2717e388-5174-40d5-8bee-8d001a0f840e
2024-11-07 06:57:05,793 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/2717e388-5174-40d5-8bee-8d001a0f840e
2024-11-07 06:57:05,800 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/8fa78331-6912-4a7c-8f4b-64c355c9b051
2024-11-07 06:57:05,812 - DEBUG - Control-node 10.0.0.29 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-04026526:ctest-vn-25775652', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-04026526', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8862692393318762539', 'uuid-lslong': '11162280412679545745'}, 'enable': 'true', 'created': '2024-11-07T06:57:03', 'last-modified': '2024-11-07T06:57:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.933719'}
2024-11-07 06:57:05,819 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-07 06:57:05,819 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-25775652 passed
2024-11-07 06:57:05,819 - DEBUG - ====Verifying policy data for ctest-vn-25775652 in API_Server ======
2024-11-07 06:57:05,819 - DEBUG - Requesting: http://10.0.0.29:8082/domains
2024-11-07 06:57:05,825 - DEBUG - Requesting: http://10.0.0.29:8082/domain/4b532f27-e9d0-42ad-8618-92fdbd522c96
2024-11-07 06:57:05,837 - DEBUG - Requesting: http://10.0.0.29:8082/project/8d5df382-2b01-4698-a6a1-c346ae0ffff1
2024-11-07 06:57:05,917 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/7afe9bc6-7152-482b-9ae8-62e52110a391
2024-11-07 06:57:05,930 - DEBUG - ==>Verifying data for policy with id: 18ec3962-6c41-45ca-8fc7-afdb74bf382a, fqn: ['default-domain', 'ctest-TestBasicPolicy-04026526', 'ctest-policy-allow-all-60884933']
2024-11-07 06:57:05,930 - INFO - VN ctest-vn-25775652 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-07 06:57:05,930 - DEBUG - Verifying the vn in opserver
2024-11-07 06:57:05,930 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-04026526:ctest-vn-25775652 virtual network link through opserver 10.0.0.29
2024-11-07 06:57:05,930 - DEBUG - Requesting: http://10.0.0.29:8081/analytics/uves/virtual-networks
2024-11-07 06:57:06,223 - DEBUG - Requesting: http://10.0.0.29:8081/analytics/uves/virtual-networks
2024-11-07 06:57:06,284 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-04026526:ctest-vn-25775652', 'href': 'http://10.0.0.29:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-04026526:ctest-vn-25775652?flat'}
2024-11-07 06:57:06,284 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-04026526:ctest-vn-25775652 is found in opserver
2024-11-07 06:57:06,295 - DEBUG - Do not have enough data to verify VN in agent
2024-11-07 06:57:06,300 - DEBUG - VRF ids for VN ctest-vn-25775652: {}
2024-11-07 06:57:06,300 - DEBUG - Requesting: http://10.0.0.29:8082/domains
2024-11-07 06:57:06,306 - DEBUG - Requesting: http://10.0.0.29:8082/domain/4b532f27-e9d0-42ad-8618-92fdbd522c96
2024-11-07 06:57:06,321 - DEBUG - Requesting: http://10.0.0.29:8082/project/8d5df382-2b01-4698-a6a1-c346ae0ffff1
2024-11-07 06:57:06,399 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/5503d6ed-4290-4ab6-bff3-59452f8bf088
2024-11-07 06:57:06,415 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/5503d6ed-4290-4ab6-bff3-59452f8bf088
2024-11-07 06:57:06,429 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/7d0a49be-1619-4a95-aebb-c3022678aebd
2024-11-07 06:57:06,439 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/7d0a49be-1619-4a95-aebb-c3022678aebd
2024-11-07 06:57:06,448 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/49aa6f24-3115-4bba-8dfe-cac725718e7c
2024-11-07 06:57:06,456 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-07 06:57:06,456 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/5503d6ed-4290-4ab6-bff3-59452f8bf088
2024-11-07 06:57:06,470 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/7d0a49be-1619-4a95-aebb-c3022678aebd
2024-11-07 06:57:06,492 - INFO - Verified VN network id 10 for VN 5503d6ed-4290-4ab6-bff3-59452f8bf088
2024-11-07 06:57:06,493 - INFO - Verifications in API Server for VN ctest-vn-03286335 passed
2024-11-07 06:57:06,493 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/5503d6ed-4290-4ab6-bff3-59452f8bf088
2024-11-07 06:57:06,508 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/7d0a49be-1619-4a95-aebb-c3022678aebd
2024-11-07 06:57:06,516 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/7d0a49be-1619-4a95-aebb-c3022678aebd
2024-11-07 06:57:06,524 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/49aa6f24-3115-4bba-8dfe-cac725718e7c
2024-11-07 06:57:06,538 - DEBUG - Control-node 10.0.0.29 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-04026526:ctest-vn-03286335', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-04026526', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6125976232666352310', 'uuid-lslong': '13831497034270240904'}, 'enable': 'true', 'created': '2024-11-07T06:57:04', 'last-modified': '2024-11-07T06:57:05', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.474100'}
2024-11-07 06:57:06,545 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-07 06:57:06,545 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-03286335 passed
2024-11-07 06:57:06,546 - DEBUG - ====Verifying policy data for ctest-vn-03286335 in API_Server ======
2024-11-07 06:57:06,546 - DEBUG - Requesting: http://10.0.0.29:8082/domains
2024-11-07 06:57:06,553 - DEBUG - Requesting: http://10.0.0.29:8082/domain/4b532f27-e9d0-42ad-8618-92fdbd522c96
2024-11-07 06:57:06,567 - DEBUG - Requesting: http://10.0.0.29:8082/project/8d5df382-2b01-4698-a6a1-c346ae0ffff1
2024-11-07 06:57:06,654 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/5503d6ed-4290-4ab6-bff3-59452f8bf088
2024-11-07 06:57:06,668 - DEBUG - ==>Verifying data for policy with id: 18ec3962-6c41-45ca-8fc7-afdb74bf382a, fqn: ['default-domain', 'ctest-TestBasicPolicy-04026526', 'ctest-policy-allow-all-60884933']
2024-11-07 06:57:06,668 - INFO - VN ctest-vn-03286335 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-07 06:57:06,668 - DEBUG - Verifying the vn in opserver
2024-11-07 06:57:06,668 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-04026526:ctest-vn-03286335 virtual network link through opserver 10.0.0.29
2024-11-07 06:57:06,668 - DEBUG - Requesting: http://10.0.0.29:8081/analytics/uves/virtual-networks
2024-11-07 06:57:06,680 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-04026526:ctest-vn-03286335', 'href': 'http://10.0.0.29:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-04026526:ctest-vn-03286335?flat'}
2024-11-07 06:57:06,680 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-04026526:ctest-vn-03286335 is found in opserver
2024-11-07 06:57:06,694 - DEBUG - Do not have enough data to verify VN in agent
2024-11-07 06:57:06,701 - DEBUG - VRF ids for VN ctest-vn-03286335: {}
2024-11-07 06:57:06,760 - DEBUG - Services list from nova: [