2024-11-10 18:12:48,422 - INFO - Domain Default found not creating
2024-11-10 18:12:48,577 - INFO - Project ctest-TestBasicPolicy-29306247 not found, creating it
2024-11-10 18:12:49,074 - INFO - Created Project:ctest-TestBasicPolicy-29306247, ID : 933b2607-fbbf-4c8d-a369-7ab39f13e404
2024-11-10 18:12:50,583 - INFO - ================================================================================
2024-11-10 18:12:50,583 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-11-10 18:12:50,583 - 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-10 18:12:50,850 - DEBUG - Nothing to compare xmpp stats {'10.0.0.35': {'10.20.0.27': '0'}} with
2024-11-10 18:12:50,850 - INFO - Initial checks done. Running the testcase now
2024-11-10 18:12:50,850 - INFO -
2024-11-10 18:12:51,419 - DEBUG - Response for create_network : {'network': {'id': '270041b7-51ca-4ae1-8f63-db6c4d088625', 'name': 'ctest-vn-15961764', 'tenant_id': '933b2607fbbf4c8da3697ab39f13e404', 'project_id': '933b2607fbbf4c8da3697ab39f13e404', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-29306247', 'ctest-vn-15961764'], 'port_security_enabled': True, 'description': ''}}
2024-11-10 18:12:51,634 - DEBUG - Response for create_subnet : {'subnet': {'id': 'acc500ff-75e7-40a4-acca-0e133f841534', 'name': '', 'tenant_id': '933b2607fbbf4c8da3697ab39f13e404', 'network_id': '270041b7-51ca-4ae1-8f63-db6c4d088625', 'ip_version': 4, 'cidr': '171.242.92.0/26', 'allocation_pools': [{'start': '171.242.92.2', 'end': '171.242.92.62'}], 'gateway_ip': '171.242.92.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '171.242.92.2', 'tags': [], 'project_id': '933b2607fbbf4c8da3697ab39f13e404'}}
2024-11-10 18:12:51,652 - INFO - Created VN ctest-vn-15961764
2024-11-10 18:12:51,708 - DEBUG - VN ctest-vn-15961764 UUID is 270041b7-51ca-4ae1-8f63-db6c4d088625
2024-11-10 18:12:52,049 - DEBUG - Response for create_network : {'network': {'id': '19629f57-762b-4ef3-a398-a74e3bd92a70', 'name': 'ctest-vn-14833435', 'tenant_id': '933b2607fbbf4c8da3697ab39f13e404', 'project_id': '933b2607fbbf4c8da3697ab39f13e404', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-29306247', 'ctest-vn-14833435'], 'port_security_enabled': True, 'description': ''}}
2024-11-10 18:12:52,258 - DEBUG - Response for create_subnet : {'subnet': {'id': '3c1d680d-77b8-40fb-9daf-ffd74727bcd1', 'name': '', 'tenant_id': '933b2607fbbf4c8da3697ab39f13e404', 'network_id': '19629f57-762b-4ef3-a398-a74e3bd92a70', 'ip_version': 4, 'cidr': '86.19.154.0/26', 'allocation_pools': [{'start': '86.19.154.2', 'end': '86.19.154.62'}], 'gateway_ip': '86.19.154.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '86.19.154.2', 'tags': [], 'project_id': '933b2607fbbf4c8da3697ab39f13e404'}}
2024-11-10 18:12:52,280 - INFO - Created VN ctest-vn-14833435
2024-11-10 18:12:52,340 - DEBUG - VN ctest-vn-14833435 UUID is 19629f57-762b-4ef3-a398-a74e3bd92a70
2024-11-10 18:12:52,461 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-29306247:ctest-vn-15961764, 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-29306247:ctest-vn-14833435, 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-10 18:12:52,774 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '270041b7-51ca-4ae1-8f63-db6c4d088625', 'name': 'ctest-vn-15961764', 'tenant_id': '933b2607fbbf4c8da3697ab39f13e404', 'project_id': '933b2607fbbf4c8da3697ab39f13e404', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['acc500ff-75e7-40a4-acca-0e133f841534'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-29306247', 'ctest-vn-15961764'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-29306247', 'ctest-policy-allow-all-04704422']], 'subnet_ipam': [{'subnet_cidr': '171.242.92.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-10 18:12:53,037 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '19629f57-762b-4ef3-a398-a74e3bd92a70', 'name': 'ctest-vn-14833435', 'tenant_id': '933b2607fbbf4c8da3697ab39f13e404', 'project_id': '933b2607fbbf4c8da3697ab39f13e404', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3c1d680d-77b8-40fb-9daf-ffd74727bcd1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-29306247', 'ctest-vn-14833435'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-29306247', 'ctest-policy-allow-all-04704422']], 'subnet_ipam': [{'subnet_cidr': '86.19.154.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-10 18:12:53,220 - DEBUG - Requesting: http://10.0.0.35:8082/domains
2024-11-10 18:12:53,525 - DEBUG - Requesting: http://10.0.0.35:8082/domains
2024-11-10 18:12:53,558 - DEBUG - Requesting: http://10.0.0.35:8082/domain/5fbc21cc-9c14-4840-9024-747686178006
2024-11-10 18:12:53,575 - DEBUG - Requesting: http://10.0.0.35:8082/project/933b2607-fbbf-4c8d-a369-7ab39f13e404
2024-11-10 18:12:53,670 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/270041b7-51ca-4ae1-8f63-db6c4d088625
2024-11-10 18:12:53,688 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/270041b7-51ca-4ae1-8f63-db6c4d088625
2024-11-10 18:12:53,701 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/543b2b52-1272-43e6-b87b-8bae326a8004
2024-11-10 18:12:53,710 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/543b2b52-1272-43e6-b87b-8bae326a8004
2024-11-10 18:12:53,720 - DEBUG - Requesting: http://10.0.0.35:8082/route-target/5230414b-8200-4879-b4f1-853a0594eb83
2024-11-10 18:12:53,727 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-10 18:12:53,727 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/270041b7-51ca-4ae1-8f63-db6c4d088625
2024-11-10 18:12:53,741 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/543b2b52-1272-43e6-b87b-8bae326a8004
2024-11-10 18:12:53,765 - INFO - Verified VN network id 7 for VN 270041b7-51ca-4ae1-8f63-db6c4d088625
2024-11-10 18:12:53,765 - INFO - Verifications in API Server for VN ctest-vn-15961764 passed
2024-11-10 18:12:53,765 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/270041b7-51ca-4ae1-8f63-db6c4d088625
2024-11-10 18:12:53,780 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/543b2b52-1272-43e6-b87b-8bae326a8004
2024-11-10 18:12:53,789 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/543b2b52-1272-43e6-b87b-8bae326a8004
2024-11-10 18:12:53,798 - DEBUG - Requesting: http://10.0.0.35:8082/route-target/5230414b-8200-4879-b4f1-853a0594eb83
2024-11-10 18:12:53,816 - DEBUG - Control-node 10.0.0.35 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-29306247:ctest-vn-15961764', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-29306247', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2810318423086222049', 'uuid-lslong': '10332343228313404965'}, 'enable': 'true', 'created': '2024-11-10T18:12:51', 'last-modified': '2024-11-10T18:12:52', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.062722'}
2024-11-10 18:12:53,823 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-10 18:12:53,823 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-15961764 passed
2024-11-10 18:12:53,824 - DEBUG - ====Verifying policy data for ctest-vn-15961764 in API_Server ======
2024-11-10 18:12:53,824 - DEBUG - Requesting: http://10.0.0.35:8082/domains
2024-11-10 18:12:53,830 - DEBUG - Requesting: http://10.0.0.35:8082/domain/5fbc21cc-9c14-4840-9024-747686178006
2024-11-10 18:12:53,843 - DEBUG - Requesting: http://10.0.0.35:8082/project/933b2607-fbbf-4c8d-a369-7ab39f13e404
2024-11-10 18:12:53,923 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/270041b7-51ca-4ae1-8f63-db6c4d088625
2024-11-10 18:12:53,936 - DEBUG - ==>Verifying data for policy with id: 4b0463c2-ef43-4e19-91d0-54a458381718, fqn: ['default-domain', 'ctest-TestBasicPolicy-29306247', 'ctest-policy-allow-all-04704422']
2024-11-10 18:12:53,936 - INFO - VN ctest-vn-15961764 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-10 18:12:53,936 - DEBUG - Verifying the vn in opserver
2024-11-10 18:12:53,937 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-29306247:ctest-vn-15961764 virtual network link through opserver 10.0.0.35
2024-11-10 18:12:53,937 - DEBUG - Requesting: http://10.0.0.35:8081/analytics/uves/virtual-networks
2024-11-10 18:12:54,251 - DEBUG - Requesting: http://10.0.0.35:8081/analytics/uves/virtual-networks
2024-11-10 18:12:54,314 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-29306247:ctest-vn-15961764', 'href': 'http://10.0.0.35:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-29306247:ctest-vn-15961764?flat'}
2024-11-10 18:12:54,314 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-29306247:ctest-vn-15961764 is found in opserver
2024-11-10 18:12:54,325 - DEBUG - Do not have enough data to verify VN in agent
2024-11-10 18:12:54,330 - DEBUG - VRF ids for VN ctest-vn-15961764: {}
2024-11-10 18:12:54,330 - DEBUG - Requesting: http://10.0.0.35:8082/domains
2024-11-10 18:12:54,336 - DEBUG - Requesting: http://10.0.0.35:8082/domain/5fbc21cc-9c14-4840-9024-747686178006
2024-11-10 18:12:54,350 - DEBUG - Requesting: http://10.0.0.35:8082/project/933b2607-fbbf-4c8d-a369-7ab39f13e404
2024-11-10 18:12:54,431 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/19629f57-762b-4ef3-a398-a74e3bd92a70
2024-11-10 18:12:54,449 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/19629f57-762b-4ef3-a398-a74e3bd92a70
2024-11-10 18:12:54,463 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/30586c09-ad02-42cf-a8cf-d8fbeaea7466
2024-11-10 18:12:54,473 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/30586c09-ad02-42cf-a8cf-d8fbeaea7466
2024-11-10 18:12:54,481 - DEBUG - Requesting: http://10.0.0.35:8082/route-target/43d39cc1-c9b8-4a40-84f1-c265c6fb61f6
2024-11-10 18:12:54,488 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-10 18:12:54,488 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/19629f57-762b-4ef3-a398-a74e3bd92a70
2024-11-10 18:12:54,502 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/30586c09-ad02-42cf-a8cf-d8fbeaea7466
2024-11-10 18:12:54,522 - INFO - Verified VN network id 8 for VN 19629f57-762b-4ef3-a398-a74e3bd92a70
2024-11-10 18:12:54,522 - INFO - Verifications in API Server for VN ctest-vn-14833435 passed
2024-11-10 18:12:54,522 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/19629f57-762b-4ef3-a398-a74e3bd92a70
2024-11-10 18:12:54,537 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/30586c09-ad02-42cf-a8cf-d8fbeaea7466
2024-11-10 18:12:54,547 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/30586c09-ad02-42cf-a8cf-d8fbeaea7466
2024-11-10 18:12:54,556 - DEBUG - Requesting: http://10.0.0.35:8082/route-target/43d39cc1-c9b8-4a40-84f1-c265c6fb61f6
2024-11-10 18:12:54,568 - DEBUG - Control-node 10.0.0.35 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-29306247:ctest-vn-14833435', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-29306247', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1829199596659363571', 'uuid-lslong': '11788355979095648880'}, 'enable': 'true', 'created': '2024-11-10T18:12:52', 'last-modified': '2024-11-10T18:12:52', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.560941'}
2024-11-10 18:12:54,576 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-10 18:12:54,576 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-14833435 passed
2024-11-10 18:12:54,576 - DEBUG - ====Verifying policy data for ctest-vn-14833435 in API_Server ======
2024-11-10 18:12:54,576 - DEBUG - Requesting: http://10.0.0.35:8082/domains
2024-11-10 18:12:54,583 - DEBUG - Requesting: http://10.0.0.35:8082/domain/5fbc21cc-9c14-4840-9024-747686178006
2024-11-10 18:12:54,597 - DEBUG - Requesting: http://10.0.0.35:8082/project/933b2607-fbbf-4c8d-a369-7ab39f13e404
2024-11-10 18:12:54,678 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/19629f57-762b-4ef3-a398-a74e3bd92a70
2024-11-10 18:12:54,693 - DEBUG - ==>Verifying data for policy with id: 4b0463c2-ef43-4e19-91d0-54a458381718, fqn: ['default-domain', 'ctest-TestBasicPolicy-29306247', 'ctest-policy-allow-all-04704422']
2024-11-10 18:12:54,693 - INFO - VN ctest-vn-14833435 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-10 18:12:54,693 - DEBUG - Verifying the vn in opserver
2024-11-10 18:12:54,693 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-29306247:ctest-vn-14833435 virtual network link through opserver 10.0.0.35
2024-11-10 18:12:54,693 - DEBUG - Requesting: http://10.0.0.35:8081/analytics/uves/virtual-networks
2024-11-10 18:12:54,704 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-29306247:ctest-vn-14833435', 'href': 'http://10.0.0.35:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-29306247:ctest-vn-14833435?flat'}
2024-11-10 18:12:54,704 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-29306247:ctest-vn-14833435 is found in opserver
2024-11-10 18:12:54,716 - DEBUG - Do not have enough data to verify VN in agent
2024-11-10 18:12:54,725 - DEBUG - VRF ids for VN ctest-vn-14833435: {}
2024-11-10 18:12:54,778 - DEBUG - Services list from nova: [