2024-11-08 14:22:29,254 - INFO - Domain Default found not creating
2024-11-08 14:22:29,426 - INFO - Project ctest-TestBasicPolicy-54342304 not found, creating it
2024-11-08 14:22:29,938 - INFO - Created Project:ctest-TestBasicPolicy-54342304, ID : a0207996-8de1-4d1c-b585-08fc7a7f4338
2024-11-08 14:22:31,509 - INFO - ================================================================================
2024-11-08 14:22:31,509 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-11-08 14:22:31,509 - 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-08 14:22:31,770 - DEBUG - Nothing to compare xmpp stats {'10.0.0.65': {'10.20.0.29': '0'}} with
2024-11-08 14:22:31,770 - INFO - Initial checks done. Running the testcase now
2024-11-08 14:22:31,771 - INFO -
2024-11-08 14:22:32,580 - DEBUG - Response for create_network : {'network': {'id': '33a63c28-6b73-4420-a631-b651e353f2ba', 'name': 'ctest-vn-52350203', 'tenant_id': 'a02079968de14d1cb58508fc7a7f4338', 'project_id': 'a02079968de14d1cb58508fc7a7f4338', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54342304', 'ctest-vn-52350203'], 'port_security_enabled': True, 'description': ''}}
2024-11-08 14:22:32,788 - DEBUG - Response for create_subnet : {'subnet': {'id': '01c7a3a7-b040-40a3-a6cd-cb351c7b9738', 'name': '', 'tenant_id': 'a02079968de14d1cb58508fc7a7f4338', 'network_id': '33a63c28-6b73-4420-a631-b651e353f2ba', 'ip_version': 4, 'cidr': '4.140.64.192/26', 'allocation_pools': [{'start': '4.140.64.194', 'end': '4.140.64.254'}], 'gateway_ip': '4.140.64.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '4.140.64.194', 'tags': [], 'project_id': 'a02079968de14d1cb58508fc7a7f4338'}}
2024-11-08 14:22:32,809 - INFO - Created VN ctest-vn-52350203
2024-11-08 14:22:32,871 - DEBUG - VN ctest-vn-52350203 UUID is 33a63c28-6b73-4420-a631-b651e353f2ba
2024-11-08 14:22:33,222 - DEBUG - Response for create_network : {'network': {'id': '3a8c03a8-daf4-41d3-960c-14bfb70647ad', 'name': 'ctest-vn-32824439', 'tenant_id': 'a02079968de14d1cb58508fc7a7f4338', 'project_id': 'a02079968de14d1cb58508fc7a7f4338', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54342304', 'ctest-vn-32824439'], 'port_security_enabled': True, 'description': ''}}
2024-11-08 14:22:33,395 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cc1187bc-8a3b-4d7d-914a-21aba0bb9bcd', 'name': '', 'tenant_id': 'a02079968de14d1cb58508fc7a7f4338', 'network_id': '3a8c03a8-daf4-41d3-960c-14bfb70647ad', 'ip_version': 4, 'cidr': '20.223.9.64/26', 'allocation_pools': [{'start': '20.223.9.66', 'end': '20.223.9.126'}], 'gateway_ip': '20.223.9.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '20.223.9.66', 'tags': [], 'project_id': 'a02079968de14d1cb58508fc7a7f4338'}}
2024-11-08 14:22:33,421 - INFO - Created VN ctest-vn-32824439
2024-11-08 14:22:33,479 - DEBUG - VN ctest-vn-32824439 UUID is 3a8c03a8-daf4-41d3-960c-14bfb70647ad
2024-11-08 14:22:33,610 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-54342304:ctest-vn-52350203, 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-54342304:ctest-vn-32824439, 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-08 14:22:33,954 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '33a63c28-6b73-4420-a631-b651e353f2ba', 'name': 'ctest-vn-52350203', 'tenant_id': 'a02079968de14d1cb58508fc7a7f4338', 'project_id': 'a02079968de14d1cb58508fc7a7f4338', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['01c7a3a7-b040-40a3-a6cd-cb351c7b9738'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54342304', 'ctest-vn-52350203'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-54342304', 'ctest-policy-allow-all-49835011']], 'subnet_ipam': [{'subnet_cidr': '4.140.64.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-08 14:22:34,284 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3a8c03a8-daf4-41d3-960c-14bfb70647ad', 'name': 'ctest-vn-32824439', 'tenant_id': 'a02079968de14d1cb58508fc7a7f4338', 'project_id': 'a02079968de14d1cb58508fc7a7f4338', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['cc1187bc-8a3b-4d7d-914a-21aba0bb9bcd'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54342304', 'ctest-vn-32824439'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-54342304', 'ctest-policy-allow-all-49835011']], 'subnet_ipam': [{'subnet_cidr': '20.223.9.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-08 14:22:34,439 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2024-11-08 14:22:34,743 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2024-11-08 14:22:34,788 - DEBUG - Requesting: http://10.0.0.65:8082/domain/153ddd09-2cd7-4ef4-8c20-a18725d88a59
2024-11-08 14:22:34,808 - DEBUG - Requesting: http://10.0.0.65:8082/project/a0207996-8de1-4d1c-b585-08fc7a7f4338
2024-11-08 14:22:34,895 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/33a63c28-6b73-4420-a631-b651e353f2ba
2024-11-08 14:22:34,911 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/33a63c28-6b73-4420-a631-b651e353f2ba
2024-11-08 14:22:34,926 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/c115bdcc-d3f6-4356-8448-97c7bb69b52b
2024-11-08 14:22:34,935 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/c115bdcc-d3f6-4356-8448-97c7bb69b52b
2024-11-08 14:22:34,945 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/3d147885-34a6-4857-9c86-0bd2c50f8269
2024-11-08 14:22:34,954 - DEBUG - Route Targets: ['target:64512:8000004']
2024-11-08 14:22:34,954 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/33a63c28-6b73-4420-a631-b651e353f2ba
2024-11-08 14:22:34,969 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/c115bdcc-d3f6-4356-8448-97c7bb69b52b
2024-11-08 14:22:34,990 - INFO - Verified VN network id 8 for VN 33a63c28-6b73-4420-a631-b651e353f2ba
2024-11-08 14:22:34,990 - INFO - Verifications in API Server for VN ctest-vn-52350203 passed
2024-11-08 14:22:34,991 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/33a63c28-6b73-4420-a631-b651e353f2ba
2024-11-08 14:22:35,006 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/c115bdcc-d3f6-4356-8448-97c7bb69b52b
2024-11-08 14:22:35,018 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/c115bdcc-d3f6-4356-8448-97c7bb69b52b
2024-11-08 14:22:35,027 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/3d147885-34a6-4857-9c86-0bd2c50f8269
2024-11-08 14:22:35,041 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-54342304:ctest-vn-52350203', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-54342304', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3721728286367368224', 'uuid-lslong': '11975553346977395386'}, 'enable': 'true', 'created': '2024-11-08T14:22:32', 'last-modified': '2024-11-08T14:22:33', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.116197'}
2024-11-08 14:22:35,048 - DEBUG - Route Targets: ['target:64512:8000004']
2024-11-08 14:22:35,048 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-52350203 passed
2024-11-08 14:22:35,048 - DEBUG - ====Verifying policy data for ctest-vn-52350203 in API_Server ======
2024-11-08 14:22:35,048 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2024-11-08 14:22:35,055 - DEBUG - Requesting: http://10.0.0.65:8082/domain/153ddd09-2cd7-4ef4-8c20-a18725d88a59
2024-11-08 14:22:35,074 - DEBUG - Requesting: http://10.0.0.65:8082/project/a0207996-8de1-4d1c-b585-08fc7a7f4338
2024-11-08 14:22:35,155 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/33a63c28-6b73-4420-a631-b651e353f2ba
2024-11-08 14:22:35,172 - DEBUG - ==>Verifying data for policy with id: 2146b10d-84db-4206-84a9-b0acdad1fd40, fqn: ['default-domain', 'ctest-TestBasicPolicy-54342304', 'ctest-policy-allow-all-49835011']
2024-11-08 14:22:35,172 - INFO - VN ctest-vn-52350203 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-08 14:22:35,172 - DEBUG - Verifying the vn in opserver
2024-11-08 14:22:35,172 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-54342304:ctest-vn-52350203 virtual network link through opserver 10.0.0.65
2024-11-08 14:22:35,173 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks
2024-11-08 14:22:35,473 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks
2024-11-08 14:22:35,539 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-54342304:ctest-vn-52350203', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-54342304:ctest-vn-52350203?flat'}
2024-11-08 14:22:35,539 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-54342304:ctest-vn-52350203 is found in opserver
2024-11-08 14:22:35,550 - DEBUG - Do not have enough data to verify VN in agent
2024-11-08 14:22:35,556 - DEBUG - VRF ids for VN ctest-vn-52350203: {}
2024-11-08 14:22:35,556 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2024-11-08 14:22:35,563 - DEBUG - Requesting: http://10.0.0.65:8082/domain/153ddd09-2cd7-4ef4-8c20-a18725d88a59
2024-11-08 14:22:35,576 - DEBUG - Requesting: http://10.0.0.65:8082/project/a0207996-8de1-4d1c-b585-08fc7a7f4338
2024-11-08 14:22:35,653 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/3a8c03a8-daf4-41d3-960c-14bfb70647ad
2024-11-08 14:22:35,670 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/3a8c03a8-daf4-41d3-960c-14bfb70647ad
2024-11-08 14:22:35,684 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/e93bc98e-85dd-4711-bd9e-79e955b236f2
2024-11-08 14:22:35,694 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/e93bc98e-85dd-4711-bd9e-79e955b236f2
2024-11-08 14:22:35,704 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/4c2d34ac-2683-43f2-939b-342d7ef1fd6c
2024-11-08 14:22:35,712 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-08 14:22:35,712 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/3a8c03a8-daf4-41d3-960c-14bfb70647ad
2024-11-08 14:22:35,728 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/e93bc98e-85dd-4711-bd9e-79e955b236f2
2024-11-08 14:22:35,748 - INFO - Verified VN network id 9 for VN 3a8c03a8-daf4-41d3-960c-14bfb70647ad
2024-11-08 14:22:35,748 - INFO - Verifications in API Server for VN ctest-vn-32824439 passed
2024-11-08 14:22:35,748 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/3a8c03a8-daf4-41d3-960c-14bfb70647ad
2024-11-08 14:22:35,764 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/e93bc98e-85dd-4711-bd9e-79e955b236f2
2024-11-08 14:22:35,773 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/e93bc98e-85dd-4711-bd9e-79e955b236f2
2024-11-08 14:22:35,784 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/4c2d34ac-2683-43f2-939b-342d7ef1fd6c
2024-11-08 14:22:35,799 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-54342304:ctest-vn-32824439', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-54342304', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4218750974702141907', 'uuid-lslong': '10812039619051669421'}, 'enable': 'true', 'created': '2024-11-08T14:22:33', 'last-modified': '2024-11-08T14:22:34', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.600482'}
2024-11-08 14:22:35,806 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-08 14:22:35,806 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-32824439 passed
2024-11-08 14:22:35,807 - DEBUG - ====Verifying policy data for ctest-vn-32824439 in API_Server ======
2024-11-08 14:22:35,807 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2024-11-08 14:22:35,814 - DEBUG - Requesting: http://10.0.0.65:8082/domain/153ddd09-2cd7-4ef4-8c20-a18725d88a59
2024-11-08 14:22:35,829 - DEBUG - Requesting: http://10.0.0.65:8082/project/a0207996-8de1-4d1c-b585-08fc7a7f4338
2024-11-08 14:22:35,916 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/3a8c03a8-daf4-41d3-960c-14bfb70647ad
2024-11-08 14:22:35,930 - DEBUG - ==>Verifying data for policy with id: 2146b10d-84db-4206-84a9-b0acdad1fd40, fqn: ['default-domain', 'ctest-TestBasicPolicy-54342304', 'ctest-policy-allow-all-49835011']
2024-11-08 14:22:35,931 - INFO - VN ctest-vn-32824439 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-08 14:22:35,931 - DEBUG - Verifying the vn in opserver
2024-11-08 14:22:35,931 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-54342304:ctest-vn-32824439 virtual network link through opserver 10.0.0.65
2024-11-08 14:22:35,931 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks
2024-11-08 14:22:35,943 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-54342304:ctest-vn-32824439', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-54342304:ctest-vn-32824439?flat'}
2024-11-08 14:22:35,943 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-54342304:ctest-vn-32824439 is found in opserver
2024-11-08 14:22:35,956 - DEBUG - Do not have enough data to verify VN in agent
2024-11-08 14:22:35,962 - DEBUG - VRF ids for VN ctest-vn-32824439: {}
2024-11-08 14:22:36,022 - DEBUG - Services list from nova: [