2024-11-15 01:37:34,513 - INFO - Domain Default found not creating
2024-11-15 01:37:34,683 - INFO - Project ctest-TestBasicPolicy-58174064 not found, creating it
2024-11-15 01:37:35,159 - INFO - Created Project:ctest-TestBasicPolicy-58174064, ID : f8c9f2d3-192f-4ac5-b8c1-26a20a115a61
2024-11-15 01:37:36,689 - INFO - ================================================================================
2024-11-15 01:37:36,690 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-11-15 01:37:36,690 - 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-15 01:37:36,951 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.26': '0'}} with
2024-11-15 01:37:36,951 - INFO - Initial checks done. Running the testcase now
2024-11-15 01:37:36,951 - INFO -
2024-11-15 01:37:37,538 - DEBUG - Response for create_network : {'network': {'id': 'dba3d34f-da90-4239-9dbe-840496008a6d', 'name': 'ctest-vn-59142610', 'tenant_id': 'f8c9f2d3192f4ac5b8c126a20a115a61', 'project_id': 'f8c9f2d3192f4ac5b8c126a20a115a61', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-58174064', 'ctest-vn-59142610'], 'port_security_enabled': True, 'description': ''}}
2024-11-15 01:37:37,700 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd03a6d49-34d8-4aaa-b6df-cb6b83f74fa5', 'name': '', 'tenant_id': 'f8c9f2d3192f4ac5b8c126a20a115a61', 'network_id': 'dba3d34f-da90-4239-9dbe-840496008a6d', 'ip_version': 4, 'cidr': '184.134.55.0/26', 'allocation_pools': [{'start': '184.134.55.2', 'end': '184.134.55.62'}], 'gateway_ip': '184.134.55.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '184.134.55.2', 'tags': [], 'project_id': 'f8c9f2d3192f4ac5b8c126a20a115a61'}}
2024-11-15 01:37:37,720 - INFO - Created VN ctest-vn-59142610
2024-11-15 01:37:37,780 - DEBUG - VN ctest-vn-59142610 UUID is dba3d34f-da90-4239-9dbe-840496008a6d
2024-11-15 01:37:38,098 - DEBUG - Response for create_network : {'network': {'id': 'bcfdc41a-052d-407f-85ce-22545965cbce', 'name': 'ctest-vn-47324412', 'tenant_id': 'f8c9f2d3192f4ac5b8c126a20a115a61', 'project_id': 'f8c9f2d3192f4ac5b8c126a20a115a61', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-58174064', 'ctest-vn-47324412'], 'port_security_enabled': True, 'description': ''}}
2024-11-15 01:37:38,347 - DEBUG - Response for create_subnet : {'subnet': {'id': '6dbf0455-9f93-4266-b863-cd045aeedfb8', 'name': '', 'tenant_id': 'f8c9f2d3192f4ac5b8c126a20a115a61', 'network_id': 'bcfdc41a-052d-407f-85ce-22545965cbce', 'ip_version': 4, 'cidr': '63.172.205.0/26', 'allocation_pools': [{'start': '63.172.205.2', 'end': '63.172.205.62'}], 'gateway_ip': '63.172.205.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '63.172.205.2', 'tags': [], 'project_id': 'f8c9f2d3192f4ac5b8c126a20a115a61'}}
2024-11-15 01:37:38,371 - INFO - Created VN ctest-vn-47324412
2024-11-15 01:37:38,432 - DEBUG - VN ctest-vn-47324412 UUID is bcfdc41a-052d-407f-85ce-22545965cbce
2024-11-15 01:37:38,569 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-58174064:ctest-vn-59142610, 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-58174064:ctest-vn-47324412, 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-15 01:37:38,901 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'dba3d34f-da90-4239-9dbe-840496008a6d', 'name': 'ctest-vn-59142610', 'tenant_id': 'f8c9f2d3192f4ac5b8c126a20a115a61', 'project_id': 'f8c9f2d3192f4ac5b8c126a20a115a61', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d03a6d49-34d8-4aaa-b6df-cb6b83f74fa5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-58174064', 'ctest-vn-59142610'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-58174064', 'ctest-policy-allow-all-03070799']], 'subnet_ipam': [{'subnet_cidr': '184.134.55.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-15 01:37:39,204 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'bcfdc41a-052d-407f-85ce-22545965cbce', 'name': 'ctest-vn-47324412', 'tenant_id': 'f8c9f2d3192f4ac5b8c126a20a115a61', 'project_id': 'f8c9f2d3192f4ac5b8c126a20a115a61', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6dbf0455-9f93-4266-b863-cd045aeedfb8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-58174064', 'ctest-vn-47324412'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-58174064', 'ctest-policy-allow-all-03070799']], 'subnet_ipam': [{'subnet_cidr': '63.172.205.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-15 01:37:39,364 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2024-11-15 01:37:39,672 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2024-11-15 01:37:39,711 - DEBUG - Requesting: http://10.0.0.22:8082/domain/8f8a73e8-8ee5-40c5-bd64-bafa63d6628b
2024-11-15 01:37:39,728 - DEBUG - Requesting: http://10.0.0.22:8082/project/f8c9f2d3-192f-4ac5-b8c1-26a20a115a61
2024-11-15 01:37:39,826 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/dba3d34f-da90-4239-9dbe-840496008a6d
2024-11-15 01:37:39,843 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/dba3d34f-da90-4239-9dbe-840496008a6d
2024-11-15 01:37:39,860 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0d0f6dd5-2df8-4697-b362-4ff44b193d99
2024-11-15 01:37:39,871 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0d0f6dd5-2df8-4697-b362-4ff44b193d99
2024-11-15 01:37:39,884 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/8e411086-79a2-4bbe-9de1-c0f8c1d2f734
2024-11-15 01:37:39,893 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-15 01:37:39,893 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/dba3d34f-da90-4239-9dbe-840496008a6d
2024-11-15 01:37:39,908 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0d0f6dd5-2df8-4697-b362-4ff44b193d99
2024-11-15 01:37:39,932 - INFO - Verified VN network id 8 for VN dba3d34f-da90-4239-9dbe-840496008a6d
2024-11-15 01:37:39,932 - INFO - Verifications in API Server for VN ctest-vn-59142610 passed
2024-11-15 01:37:39,932 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/dba3d34f-da90-4239-9dbe-840496008a6d
2024-11-15 01:37:39,946 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0d0f6dd5-2df8-4697-b362-4ff44b193d99
2024-11-15 01:37:39,956 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0d0f6dd5-2df8-4697-b362-4ff44b193d99
2024-11-15 01:37:39,965 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/8e411086-79a2-4bbe-9de1-c0f8c1d2f734
2024-11-15 01:37:39,980 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-58174064:ctest-vn-59142610', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-58174064', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15826725855432819257', 'uuid-lslong': '11366667664761064045'}, 'enable': 'true', 'created': '2024-11-15T01:37:37', 'last-modified': '2024-11-15T01:37:38', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.113103'}
2024-11-15 01:37:39,988 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-15 01:37:39,988 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-59142610 passed
2024-11-15 01:37:39,988 - DEBUG - ====Verifying policy data for ctest-vn-59142610 in API_Server ======
2024-11-15 01:37:39,988 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2024-11-15 01:37:39,995 - DEBUG - Requesting: http://10.0.0.22:8082/domain/8f8a73e8-8ee5-40c5-bd64-bafa63d6628b
2024-11-15 01:37:40,009 - DEBUG - Requesting: http://10.0.0.22:8082/project/f8c9f2d3-192f-4ac5-b8c1-26a20a115a61
2024-11-15 01:37:40,096 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/dba3d34f-da90-4239-9dbe-840496008a6d
2024-11-15 01:37:40,111 - DEBUG - ==>Verifying data for policy with id: c6ebb8b1-07e9-4c6c-9fc9-d79402b94a07, fqn: ['default-domain', 'ctest-TestBasicPolicy-58174064', 'ctest-policy-allow-all-03070799']
2024-11-15 01:37:40,111 - INFO - VN ctest-vn-59142610 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-15 01:37:40,111 - DEBUG - Verifying the vn in opserver
2024-11-15 01:37:40,111 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-58174064:ctest-vn-59142610 virtual network link through opserver 10.0.0.22
2024-11-15 01:37:40,112 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2024-11-15 01:37:40,411 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2024-11-15 01:37:40,491 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-58174064:ctest-vn-59142610', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-58174064:ctest-vn-59142610?flat'}
2024-11-15 01:37:40,491 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-58174064:ctest-vn-59142610 is found in opserver
2024-11-15 01:37:40,504 - DEBUG - Do not have enough data to verify VN in agent
2024-11-15 01:37:40,510 - DEBUG - VRF ids for VN ctest-vn-59142610: {}
2024-11-15 01:37:40,510 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2024-11-15 01:37:40,519 - DEBUG - Requesting: http://10.0.0.22:8082/domain/8f8a73e8-8ee5-40c5-bd64-bafa63d6628b
2024-11-15 01:37:40,533 - DEBUG - Requesting: http://10.0.0.22:8082/project/f8c9f2d3-192f-4ac5-b8c1-26a20a115a61
2024-11-15 01:37:40,633 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/bcfdc41a-052d-407f-85ce-22545965cbce
2024-11-15 01:37:40,656 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/bcfdc41a-052d-407f-85ce-22545965cbce
2024-11-15 01:37:40,673 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/d6686093-c5a3-4a1c-8fad-8ded66cb2db3
2024-11-15 01:37:40,683 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/d6686093-c5a3-4a1c-8fad-8ded66cb2db3
2024-11-15 01:37:40,693 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/cd62e127-31f1-4601-bab5-ce710b06b2d7
2024-11-15 01:37:40,701 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-15 01:37:40,702 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/bcfdc41a-052d-407f-85ce-22545965cbce
2024-11-15 01:37:40,716 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/d6686093-c5a3-4a1c-8fad-8ded66cb2db3
2024-11-15 01:37:40,738 - INFO - Verified VN network id 9 for VN bcfdc41a-052d-407f-85ce-22545965cbce
2024-11-15 01:37:40,738 - INFO - Verifications in API Server for VN ctest-vn-47324412 passed
2024-11-15 01:37:40,738 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/bcfdc41a-052d-407f-85ce-22545965cbce
2024-11-15 01:37:40,752 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/d6686093-c5a3-4a1c-8fad-8ded66cb2db3
2024-11-15 01:37:40,761 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/d6686093-c5a3-4a1c-8fad-8ded66cb2db3
2024-11-15 01:37:40,770 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/cd62e127-31f1-4601-bab5-ce710b06b2d7
2024-11-15 01:37:40,785 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-58174064:ctest-vn-47324412', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-58174064', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13618256464273293439', 'uuid-lslong': '9641681597919251406'}, 'enable': 'true', 'created': '2024-11-15T01:37:38', 'last-modified': '2024-11-15T01:37:39', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.648367'}
2024-11-15 01:37:40,791 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-15 01:37:40,792 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-47324412 passed
2024-11-15 01:37:40,792 - DEBUG - ====Verifying policy data for ctest-vn-47324412 in API_Server ======
2024-11-15 01:37:40,792 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2024-11-15 01:37:40,798 - DEBUG - Requesting: http://10.0.0.22:8082/domain/8f8a73e8-8ee5-40c5-bd64-bafa63d6628b
2024-11-15 01:37:40,813 - DEBUG - Requesting: http://10.0.0.22:8082/project/f8c9f2d3-192f-4ac5-b8c1-26a20a115a61
2024-11-15 01:37:40,901 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/bcfdc41a-052d-407f-85ce-22545965cbce
2024-11-15 01:37:40,916 - DEBUG - ==>Verifying data for policy with id: c6ebb8b1-07e9-4c6c-9fc9-d79402b94a07, fqn: ['default-domain', 'ctest-TestBasicPolicy-58174064', 'ctest-policy-allow-all-03070799']
2024-11-15 01:37:40,916 - INFO - VN ctest-vn-47324412 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-15 01:37:40,916 - DEBUG - Verifying the vn in opserver
2024-11-15 01:37:40,916 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-58174064:ctest-vn-47324412 virtual network link through opserver 10.0.0.22
2024-11-15 01:37:40,916 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2024-11-15 01:37:40,933 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-58174064:ctest-vn-47324412', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-58174064:ctest-vn-47324412?flat'}
2024-11-15 01:37:40,933 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-58174064:ctest-vn-47324412 is found in opserver
2024-11-15 01:37:40,944 - DEBUG - Do not have enough data to verify VN in agent
2024-11-15 01:37:40,950 - DEBUG - VRF ids for VN ctest-vn-47324412: {}
2024-11-15 01:37:41,021 - DEBUG - Services list from nova: [