2024-11-07 02:31:44,089 - INFO - Domain Default found not creating
2024-11-07 02:31:44,299 - INFO - Project ctest-TestBasicPolicy-44235913 not found, creating it
2024-11-07 02:31:44,814 - INFO - Created Project:ctest-TestBasicPolicy-44235913, ID : 7be251b7-af8e-47c1-843c-1eb0ea0db444
2024-11-07 02:31:46,325 - INFO - ================================================================================
2024-11-07 02:31:46,325 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-11-07 02:31:46,325 - 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 02:31:46,581 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.29': '0'}} with
2024-11-07 02:31:46,581 - INFO - Initial checks done. Running the testcase now
2024-11-07 02:31:46,581 - INFO -
2024-11-07 02:31:47,164 - DEBUG - Response for create_network : {'network': {'id': '434457b7-f98a-4015-9cab-537ec4bccf79', 'name': 'ctest-vn-64338799', 'tenant_id': '7be251b7af8e47c1843c1eb0ea0db444', 'project_id': '7be251b7af8e47c1843c1eb0ea0db444', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-44235913', 'ctest-vn-64338799'], 'port_security_enabled': True, 'description': ''}}
2024-11-07 02:31:47,409 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c9f2a4b1-48e2-482e-90f3-b2ec97e7a886', 'name': '', 'tenant_id': '7be251b7af8e47c1843c1eb0ea0db444', 'network_id': '434457b7-f98a-4015-9cab-537ec4bccf79', 'ip_version': 4, 'cidr': '58.133.186.64/26', 'allocation_pools': [{'start': '58.133.186.66', 'end': '58.133.186.126'}], 'gateway_ip': '58.133.186.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '58.133.186.66', 'tags': [], 'project_id': '7be251b7af8e47c1843c1eb0ea0db444'}}
2024-11-07 02:31:47,430 - INFO - Created VN ctest-vn-64338799
2024-11-07 02:31:47,487 - DEBUG - VN ctest-vn-64338799 UUID is 434457b7-f98a-4015-9cab-537ec4bccf79
2024-11-07 02:31:47,785 - DEBUG - Response for create_network : {'network': {'id': '518a28d7-ad0a-4522-a769-64aae3940293', 'name': 'ctest-vn-61466209', 'tenant_id': '7be251b7af8e47c1843c1eb0ea0db444', 'project_id': '7be251b7af8e47c1843c1eb0ea0db444', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-44235913', 'ctest-vn-61466209'], 'port_security_enabled': True, 'description': ''}}
2024-11-07 02:31:47,948 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f59529de-a1f9-40f9-8287-2e1ccd6c084b', 'name': '', 'tenant_id': '7be251b7af8e47c1843c1eb0ea0db444', 'network_id': '518a28d7-ad0a-4522-a769-64aae3940293', 'ip_version': 4, 'cidr': '106.167.231.128/26', 'allocation_pools': [{'start': '106.167.231.130', 'end': '106.167.231.190'}], 'gateway_ip': '106.167.231.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '106.167.231.130', 'tags': [], 'project_id': '7be251b7af8e47c1843c1eb0ea0db444'}}
2024-11-07 02:31:47,967 - INFO - Created VN ctest-vn-61466209
2024-11-07 02:31:48,023 - DEBUG - VN ctest-vn-61466209 UUID is 518a28d7-ad0a-4522-a769-64aae3940293
2024-11-07 02:31:48,145 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-44235913:ctest-vn-64338799, 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-44235913:ctest-vn-61466209, 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 02:31:48,460 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '434457b7-f98a-4015-9cab-537ec4bccf79', 'name': 'ctest-vn-64338799', 'tenant_id': '7be251b7af8e47c1843c1eb0ea0db444', 'project_id': '7be251b7af8e47c1843c1eb0ea0db444', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c9f2a4b1-48e2-482e-90f3-b2ec97e7a886'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-44235913', 'ctest-vn-64338799'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-44235913', 'ctest-policy-allow-all-97261490']], 'subnet_ipam': [{'subnet_cidr': '58.133.186.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-07 02:31:48,703 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '518a28d7-ad0a-4522-a769-64aae3940293', 'name': 'ctest-vn-61466209', 'tenant_id': '7be251b7af8e47c1843c1eb0ea0db444', 'project_id': '7be251b7af8e47c1843c1eb0ea0db444', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f59529de-a1f9-40f9-8287-2e1ccd6c084b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-44235913', 'ctest-vn-61466209'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-44235913', 'ctest-policy-allow-all-97261490']], 'subnet_ipam': [{'subnet_cidr': '106.167.231.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-07 02:31:48,871 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2024-11-07 02:31:49,170 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2024-11-07 02:31:49,503 - DEBUG - Requesting: http://10.0.0.22:8082/domain/4a2badd5-69e6-4461-91ed-b1461c10a756
2024-11-07 02:31:49,517 - DEBUG - Requesting: http://10.0.0.22:8082/project/7be251b7-af8e-47c1-843c-1eb0ea0db444
2024-11-07 02:31:49,613 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/434457b7-f98a-4015-9cab-537ec4bccf79
2024-11-07 02:31:49,629 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/434457b7-f98a-4015-9cab-537ec4bccf79
2024-11-07 02:31:49,644 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/8ce822c5-baaf-4dbd-afa4-98fe0f2327d4
2024-11-07 02:31:49,654 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/8ce822c5-baaf-4dbd-afa4-98fe0f2327d4
2024-11-07 02:31:49,665 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/ab3ae0fd-05ba-4306-b9ed-c5ffa1afdc27
2024-11-07 02:31:49,674 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-07 02:31:49,674 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/434457b7-f98a-4015-9cab-537ec4bccf79
2024-11-07 02:31:49,691 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/8ce822c5-baaf-4dbd-afa4-98fe0f2327d4
2024-11-07 02:31:49,710 - INFO - Verified VN network id 8 for VN 434457b7-f98a-4015-9cab-537ec4bccf79
2024-11-07 02:31:49,710 - INFO - Verifications in API Server for VN ctest-vn-64338799 passed
2024-11-07 02:31:49,710 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/434457b7-f98a-4015-9cab-537ec4bccf79
2024-11-07 02:31:49,726 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/8ce822c5-baaf-4dbd-afa4-98fe0f2327d4
2024-11-07 02:31:49,734 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/8ce822c5-baaf-4dbd-afa4-98fe0f2327d4
2024-11-07 02:31:49,745 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/ab3ae0fd-05ba-4306-b9ed-c5ffa1afdc27
2024-11-07 02:31:49,759 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-44235913:ctest-vn-64338799', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-44235913', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4847095546634715157', 'uuid-lslong': '11289208694865973113'}, 'enable': 'true', 'created': '2024-11-07T02:31:47', 'last-modified': '2024-11-07T02:31:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.326502'}
2024-11-07 02:31:49,765 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-07 02:31:49,765 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-64338799 passed
2024-11-07 02:31:49,766 - DEBUG - ====Verifying policy data for ctest-vn-64338799 in API_Server ======
2024-11-07 02:31:49,766 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2024-11-07 02:31:49,774 - DEBUG - Requesting: http://10.0.0.22:8082/domain/4a2badd5-69e6-4461-91ed-b1461c10a756
2024-11-07 02:31:49,793 - DEBUG - Requesting: http://10.0.0.22:8082/project/7be251b7-af8e-47c1-843c-1eb0ea0db444
2024-11-07 02:31:49,881 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/434457b7-f98a-4015-9cab-537ec4bccf79
2024-11-07 02:31:49,895 - DEBUG - ==>Verifying data for policy with id: e07c32c2-9a34-4e57-b90b-d60c37b8553e, fqn: ['default-domain', 'ctest-TestBasicPolicy-44235913', 'ctest-policy-allow-all-97261490']
2024-11-07 02:31:49,895 - INFO - VN ctest-vn-64338799 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-07 02:31:49,895 - DEBUG - Verifying the vn in opserver
2024-11-07 02:31:49,896 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-44235913:ctest-vn-64338799 virtual network link through opserver 10.0.0.22
2024-11-07 02:31:49,896 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2024-11-07 02:31:50,204 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2024-11-07 02:31:50,277 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-44235913:ctest-vn-64338799', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-44235913:ctest-vn-64338799?flat'}
2024-11-07 02:31:50,277 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-44235913:ctest-vn-64338799 is found in opserver
2024-11-07 02:31:50,288 - DEBUG - Do not have enough data to verify VN in agent
2024-11-07 02:31:50,293 - DEBUG - VRF ids for VN ctest-vn-64338799: {}
2024-11-07 02:31:50,293 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2024-11-07 02:31:50,299 - DEBUG - Requesting: http://10.0.0.22:8082/domain/4a2badd5-69e6-4461-91ed-b1461c10a756
2024-11-07 02:31:50,311 - DEBUG - Requesting: http://10.0.0.22:8082/project/7be251b7-af8e-47c1-843c-1eb0ea0db444
2024-11-07 02:31:50,394 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/518a28d7-ad0a-4522-a769-64aae3940293
2024-11-07 02:31:50,410 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/518a28d7-ad0a-4522-a769-64aae3940293
2024-11-07 02:31:50,424 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f1053609-cf2a-452b-a625-0379e466ce00
2024-11-07 02:31:50,432 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f1053609-cf2a-452b-a625-0379e466ce00
2024-11-07 02:31:50,440 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/5ceabae5-06a7-41a2-b961-f540b4b175bf
2024-11-07 02:31:50,447 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-07 02:31:50,447 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/518a28d7-ad0a-4522-a769-64aae3940293
2024-11-07 02:31:50,460 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f1053609-cf2a-452b-a625-0379e466ce00
2024-11-07 02:31:50,481 - INFO - Verified VN network id 9 for VN 518a28d7-ad0a-4522-a769-64aae3940293
2024-11-07 02:31:50,481 - INFO - Verifications in API Server for VN ctest-vn-61466209 passed
2024-11-07 02:31:50,481 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/518a28d7-ad0a-4522-a769-64aae3940293
2024-11-07 02:31:50,496 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f1053609-cf2a-452b-a625-0379e466ce00
2024-11-07 02:31:50,505 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f1053609-cf2a-452b-a625-0379e466ce00
2024-11-07 02:31:50,514 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/5ceabae5-06a7-41a2-b961-f540b4b175bf
2024-11-07 02:31:50,526 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-44235913:ctest-vn-61466209', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-44235913', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5875553570644444450', 'uuid-lslong': '12063283762013930131'}, 'enable': 'true', 'created': '2024-11-07T02:31:47', 'last-modified': '2024-11-07T02:31:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.845228'}
2024-11-07 02:31:50,533 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-07 02:31:50,533 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-61466209 passed
2024-11-07 02:31:50,533 - DEBUG - ====Verifying policy data for ctest-vn-61466209 in API_Server ======
2024-11-07 02:31:50,533 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2024-11-07 02:31:50,539 - DEBUG - Requesting: http://10.0.0.22:8082/domain/4a2badd5-69e6-4461-91ed-b1461c10a756
2024-11-07 02:31:50,552 - DEBUG - Requesting: http://10.0.0.22:8082/project/7be251b7-af8e-47c1-843c-1eb0ea0db444
2024-11-07 02:31:50,633 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/518a28d7-ad0a-4522-a769-64aae3940293
2024-11-07 02:31:50,649 - DEBUG - ==>Verifying data for policy with id: e07c32c2-9a34-4e57-b90b-d60c37b8553e, fqn: ['default-domain', 'ctest-TestBasicPolicy-44235913', 'ctest-policy-allow-all-97261490']
2024-11-07 02:31:50,649 - INFO - VN ctest-vn-61466209 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-07 02:31:50,649 - DEBUG - Verifying the vn in opserver
2024-11-07 02:31:50,649 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-44235913:ctest-vn-61466209 virtual network link through opserver 10.0.0.22
2024-11-07 02:31:50,649 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2024-11-07 02:31:50,660 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-44235913:ctest-vn-61466209', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-44235913:ctest-vn-61466209?flat'}
2024-11-07 02:31:50,660 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-44235913:ctest-vn-61466209 is found in opserver
2024-11-07 02:31:50,670 - DEBUG - Do not have enough data to verify VN in agent
2024-11-07 02:31:50,675 - DEBUG - VRF ids for VN ctest-vn-61466209: {}
2024-11-07 02:31:50,732 - DEBUG - Services list from nova: [